OpenCV Study Notes (62)--"OpenCV computer Version with Python" Reading summary

Source: Internet
Author: User

Now Python fire Ah, each OPENCV comes with the ML module let me call the pit Dad, simply ready to use Python to do OPENCV later machine learning algorithm processing. So hurriedly picked up the book to read.

Suitable for OpenCV and Python have a certain foundation .... Since all are more familiar with these two things, I read before the more concerned about only a few problems, specific application examples did not look carefully.

1. How to install OpenCV in Python

2.OpenCV MAT data structure can be easily converted into the NumPy array structure

is 3.OpenCV GUI module good for Python?

4. The two can also rub out what I can't think of sparks ....

The book mentions that in Windows systems, python-32bit performance is better than 64bit, it is recommended to install 32-bit Python

The first problem is very simple under Windows, OpenCV installed, find the directory <build_folder>\lib\release\cv2.pyd (from a Visual Studio build) This file, Then copy to C:\Python2.7\Lib\site-packages. It's done, it's that simple. After all, the scripting language, simply ruthless,\sources\samples There are many examples of Python, run a few try to know if it is installed. Import Cv2 This sentence can be imported into the Cv2 module.

The second question does not have to worry, because Python does not declare the type of variable, experiment, found that the matrix data type is an array, stable, directly to use .

The third problem is also very simple, the image display reading and writing module, camera module, mouse keyboard response module can be, and C + + version of the use of the same.

Fourth question I read the book briefly, did not find any bright spots, but the book mentions a pygame can be used to do Hgui effect also line, support painting and editing text, but it seems to CV also did not help, so did not study.

Add a few questions I met when I was studying:

The RECT data structure in OPENCV does not have a corresponding type in Python, which should be noted when calling. For example, the rectangle function inputs the coordinates of the rectangle's two points, not the rect.

There is a lot of OPENCV in the Python need to add the CV2.CV prefix can be effective .


OpenCV Study Notes (62)--OpenCV computer Version with Python read summary

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.