How to configure opencv3.2.0 in Python3.5.3

php中世界最好的语言
Release: 2018-04-09 11:36:18
Original
1783 people have browsed it

This time I will bring you how to configure opencv3.2.0 in Python3.5.3, and what are the precautions for configuring opencv3.2.0 in Python3.5.3, as follows This is a practical case, let’s take a look at it.

1.Installationnumpy

Enter the site-packages folder under lib in the python installation directory and open cmd Enter pip install numpy to download numpy

The NumPy system is an open source numerical computing extension for Python. This tool can be used to store and process large matrices much more efficiently than Python's own nested list structure (which can also be used to represent matrices). It is said that NumPy turns Python into a free and more powerful MatLab system.

2. Download opencv

The download here is opencv3.2.0 64-bit

3. Install opencv

Copy the downloaded Opencv 3.2.0 module to the Python installation directory Lib\site-packages, enter pip install opencv_python-3.2 .0 contrib-cp35-cp35m-win_amd64.whl

4. MSVCP140.dll library

If this library does not exist in the computer, it will be When importing the cv2 module, an error message

import cv2
Traceback (mostrecent call last):
File"<stdin>", line1,in <module>
Copy after login

ImportError: DLLload failed: The specified module cannot be found.

Download Microsoft Visual C 2015 Redistributable and install

5. Test

No error is reported at this time, which means the configuration is successful!

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to the php Chinese website Other related articles!

Recommended reading:

How python reads and writes txt files line by line

How python batch reads txt files into DataFrame format

The above is the detailed content of How to configure opencv3.2.0 in Python3.5.3. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!