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

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…

Contents