From the course: OpenCV for Python Developers

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Install on Linux: Compile OpenCV

Install on Linux: Compile OpenCV

From the course: OpenCV for Python Developers

Install on Linux: Compile OpenCV

- [Instructor] Now that we've gone through the process of installing open cv, let's test that we can successfully import it and run it with Python 3. To do this, enter the Python 3 environment of your choice. In this case, because I'm on Mac OS X, I'm going to go up to the spotlight and open up my terminal. Then I'm going to type python3 and enter the Python runtime environment. If you used a virtual environment wrapper be sure to use the environment sim link that was created. To test that the install was successful, we're going to run two imports. Firstly, import numpy, and we can see the version of numpy installed using .__version__ and we see that it printed out the 1.13.1 version of numpy. The fact that there were no errors when numpy was imported shows that it was successful. Similarly, we're going to test the cv2 import which is the link, or the library name, for the open cv3 module. Note that cv2 is…

Contents