From the course: OpenCV for Python Developers
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Test the install
From the course: OpenCV for Python Developers
Test the install
- [Instructor] Now that we've gone through the process of installing OpenCV, 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 open up and run my terminal. Then I need to remember that I installed OpenCV into a Python environment, which I now need to activate. This command depends on the system and how you install the environment in the first place, refer to the prior video for that. In my case, I need to run source ~/opt/opencv/bin and then activate. We can see that I'm now inside of my environment because I have the prefix of OpenCV. Next, let's type python3 to enter in the Python environment. We can see here we successfully have 3.10, which we just installed, so we are indeed using the expected Python version. To test that the OpenCV install was successful, we're going to run two…
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
-
-
-
-
-