OpenCV¶
OpenCV is a computer vision library. Used to develop real-time image processing, computer vision, and pattern recognition programs.
An independent OpenCV image has been provided in the official image, and OpenCV of C++ and Python supporting GPU is provided in this image environment. OpenCV included in other framework images is installed via PIP.
Environment description¶
The code and installation path of the OpenCV framework image:
- OpenCV source code:
/usr/src/opencv-4.5.4
- OpenCV module source code:
/usr/src/opencv_contrib-4.5.4
- Build path:
/usr/src/build
- Install path:
/usr/local/opencv
The dynamic link library path has been configured in the /etc/ld.so.conf.d/opencv.conf
file, and pkg-config opencv --cflags --libs
can be used directly as a compilation parameter.
Python3 also uses OpenCV compiled from source. pip list
cannot view the OpenCV package, just import it directly.
python3 -c "import cv2; print(cv2.__version__)"