How do you check whether opencv is installed in ubuntu?

1 answer

Answer

1161141

2026-03-06 00:10

+ Follow

To check if OpenCV is installed on Ubuntu, you can open a terminal and run the command pkg-config --modversion opencv4. If OpenCV is installed, this command will return the version number. Alternatively, you can also check within a Python environment by running import cv2 followed by print(cv2.__version__). If OpenCV is not installed, you will receive an error message in both cases.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.