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
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Python and OpenCV2m 1s
-
(Locked)
Using virtual environments1m 36s
-
(Locked)
Install on Mac OS4m 50s
-
(Locked)
Install on Windows6m 23s
-
(Locked)
Install on Linux: Prerequisites5m 45s
-
(Locked)
Install on Linux: Compile OpenCV1m 51s
-
(Locked)
Using OpenCV with Google Colab5m 18s
-
(Locked)
Test the install3m
-
-
-
-
-