Python Practice Notes

Source: Internet
Author: User
Tags image processing library traits

The Python extension libraries covered in the book include NumPy, SciPy, SymPy, Matplotlib, Traits, Traitsui,

Chaco, TVTK, Mayavi, Vpython, OpenCV and so on.

Ideal for web development, System management, and common business applications.

Python has also built a solid foundation in the field of scientific computing, covering a wide range of applications ranging from seismic data processing in oil exploration to quantum physics.

Python is an object-oriented, dynamic programming language with a very concise and clear syntax, which can be used for rapid development of program scripts or for the development of large-scale software, especially for the completion of a variety of high-level tasks.

Compared with Matlab, Python is a true universal programming language, more widely used than the scripting language used in MATLAB, with more library support, for Windows and Linux and other platforms, completely free and open source.

While some of the advanced features in MATLAB are currently irreplaceable, it is entirely possible to use Python for basic, forward-looking research work and application system development.

Basic syntax for Python

In order to improve the efficiency of the program, it is sometimes necessary to write the Python extension module in C language.

Explanatory type (sort of like a script?) Object-oriented, dynamic? Advanced programming language.

It is more widely used to deal with system relationship tasks and web programming.

Many open source scientific computing packages provide Python's calling interface, such as Computer Vision Library OpenCV, three-dimensional visual library VTK, medical image processing library ITK

NumPy: Fast Array processing

SciPy: Numerical operations

Matplotlib: Drawing function

Language + extension library to form the development environment

Python can easily perform a variety of high-level tasks, such as file management, interface design, network communication, and other non-scientific computing requirements, and developers can use Python to accomplish the various functions required by the application.

Python's many extensions are maintained and released by many communities, so it's time-consuming to collect them all and install them on your computer.

Therefore, there are so-called integrated environment packages.

Python (x, y) collects numerous extension libraries, documentation, and tutorials. Full installation mode is recommended.

EPD is a commercially available Python release. The use of teaching is free of charge.

An interactive command-line tool for Ipython:python (shell? )

Support for syntax highlighting, auto-completion, viewing documents, viewing source code, executing cmd commands, auto-indenting, support for bash shell commands, and built-in many useful functions and functions.

Introduction to the Integrated development environment

The IDE is the final program generation, all the tools that may be used, integrated into an environment, easy to use.

Eclipse is a well-known, cross-platform, free-integrated development environment (IDE). It was originally used primarily for Java language development, but it is now being made available as a development tool for other computer languages such as C + + and Python. Eclipse itself is only a framework platform, but the support of many plugins makes it difficult for eclipse to have the flexibility of other functionally relatively fixed IDE software. Many software developers develop their own IDES in the framework of Eclipse. For its part, it is just a framework and a set of services for building a development environment through plug-in components. Pydev is a powerful eclipse plugin that allows users to fully utilize eclipse for development and debugging of Python applications. The use of Eclipse+pydev plug-ins can also form an IDE environment.

The Spyder (formerly Pydee) is a powerful interactive Python language development environment that provides advanced code editing, interactive testing, debugging and other features that support Windows, Linux, and OS X systems. The Spyder is a simple integrated development environment developed by the author of Python (x, y) for it. Compared with other Python development environments, its greatest advantage is the ability to mimic the "workspace" of Matlab, which makes it easy to observe and modify the values of an array.

Codimension is a Python integrated development environment that provides code editing and chart-based code analysis capabilities.

Visual Studio Python Development plugin PTVS, vim plugin python-mode, Pythonwin, Wingide, pycharm, etc.

Graphical user interface (graphical user Interface, referred to as GUI, also known as graphical subscriber interface)

Pylab is similar to MATLAB such a comprehensive platform, Pylab Python, NumPy, SciPy, matplotlib all together, with IPython as the interface, the namespace are all together. That is, the Pylab mode of Ipython.

Novice users are advised to use the Pylab mode, The Pylab includes all of the Matplotlib.pyplot's drawing commands, as well as functions in NumPy and Matplotlib.mlab, which are almost identical to those of the MATLAB drawing commands and routines; Advanced users are advised to use matplotlib for more details Control.

Function Library Introduction

Numerical Computing Library numpy+scipy with these two libraries, Python has the ability to process data and compute almost as much as Matlab. The core calculations of SCIPY are some of the tried and tested Fortran numerical computing libraries.

Symbolic Computing Library SymPy is a set of function libraries for symbolic math operations

Interface design using traits library traits library is divided into traits and Traitsui two parts. Programs written using the Traitsui library automatically support the Wxpython and PYQT two classic interface libraries.

Drawing and visualization

The Chaco Library is closely linked to the traits library, making it easy to create dynamic and interactive icons.

Matplotlib

TVTK Library is in the standard VTK library with the traits library for encapsulation, to use VTK in Python, with TVTK better. Mayavi2 is based on the TVTK to add a set of application-oriented convenience tools, which can be used as a 3D visualization program, but also quickly embedded into the user's program.

VTK (Visual Tools function Library)

The visual library makes it quick and easy to make 3D animated presentations.

Image processing and computer vision

The OpenCV can be used to develop real-time image processing, computer vision, and pattern recognition programs.

Interface programming for Python

The release comes with Tkinter WxPython PyQt PYGTK can call these libraries for interface design

Python Practice Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.