- Mastering OpenCV 4 with Python
- Alberto Fernández Villán
- 81字
- 2025-04-04 14:41:17
Testing the installation
One way to test the installation is to execute an OpenCV Python script. In order to do it, you should have two files, logo.png and test_opencv_installation.py, in a specific folder:

Open a cmd and go to the path where these two files are. Next, we can check the installation by typing the following:
python test_opencv_installation.py
You should see both the OpenCV RGB logo and the OpenCV grayscale logo:

In that case, the installation has been successful.