0 A tutorial on installing Anaconda and Python on Windows is detailed

Source: Internet
Author: User
Tags python script

One, the required installation package

Because Scikit-image is based on scipy, installing NumPy and scipy is sure. To display the picture, you also need to install the Matplotlib package, combined, the required packages are:

1 Python >= 2.62 Numpy >= 1.6.13 cython >= 0.214 Six >=1.45 SciPy >=0.96 matplotlib >= 1.1.07 networkx >= 1.88 Pillow >= 1.7.89 Dask[array ] >= 0.5.0

Comparison, installation is very cumbersome, especially scipy, on Windows Basic installation is not on.

But don't be afraid, we choose an integrated installation environment on the line, it is recommended Anaconda, it put the above required packages are integrated together, so we actually only need to install Anaconda software on the line, and nothing else to pretend.

Second, download and install Anaconda

First to https://www.continuum.io/downloads download Anaconda, now the version has python2.7 version and python3.5 version, download the corresponding version, the corresponding system anaconda, It is actually a sh script file, about 280M or so.

This series takes windows7+python3.5 as an example, so we download the version in the Red box:

Name is: Anaconda3-2.4.1-windows-x86_64.exe

is an executable exe file, the download is complete, the direct double-click can be installed.

At the time of installation, suppose we install the D packing directory, such as:

and select all two options to write the installation path to the environment variable.

Then wait for the installation to complete.

When the installation is complete, open a command prompt for Windows:

Input Conda list can query now which libraries are installed, commonly used NumPy, scipy is listed among them. If you still have what package is not installed on, you can run

Conda Install * * * for installation. (* * * for the name of the package required)

If a package version is not up-to-date, you can update it by running Conda update.

Three, simple test

Anaconda comes with an editor Spyder that we can use later to write code.

Spyder.exe placed in the installation directory Scripts inside, as mine is D:/anaconda3/scripts/spyder.exe, directly double-click to run. We can right-click to send to the desktop shortcut, it is more convenient to run later.

We simply write a program to test the success of the installation, which is used to open a picture and display it. First prepare a picture, then open the Spyder, and write the following code:

1 Import io 2 img=io.imread (' d:/dog.jpg ')3 io.imshow (IMG)

Change the d:/dog.jpg to your picture location

Then click on the green triangle in the toolbar above to run, and finally show

If the "Ipython console" in the lower right corner shows a picture, the installation of our operating environment is successful.

We can select "Variable Explorer" in the upper right corner to view picture information, such as

We can save this program, note that the Python script file has a suffix called py.

Iv. Sub-modules of the Skimage package

The full name of the

Skimage package is scikit-image scikit (Toolkit for SciPy), which expands the scipy.ndimage and provides more image processing capabilities. It was written by the Python language and developed and maintained by the SCIPY community. The Skimage package consists of many sub-modules, each of which provides different functions. The main sub-modules are listed as follows:

submodule name Main implementation features
io read, save, and display pictures or videos
data provide some test pictures and sample data
color color space transform
filters image enhancements, edge detection, sorting filters, auto thresholds, etc.
Draw operates on basic drawing on the NumPy array, including lines, rectangles, circles, and text, such as
transform geometric transformations or other transformations, such as rotation, extrude, and radon transformations. /td>
morphology morphological operations, such as opening and closing operations, skeleton extraction, etc.
exposure picture strength adjustment , such as brightness adjustment, histogram equalization, and so on
feature feature detection and extraction
measure Image Properties Measurements such as similarities or contours
Segmentation Image Segmentation
restoration figure Like restore
util general functions

When you use some manipulation functions for image processing, you need to import the corresponding submodule, and if you need to import more than one submodule, separate them with commas, such as

1 Import Io,data,color

The above is a detailed tutorial on installing Anaconda and Python on Windows.

0 A tutorial on installing Anaconda and Python on Windows is detailed

Related Article

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.