Build OpenCV from source code
Ubuntu 22.04 install OpenCV
sudo apt install python3-opencv
Write a python script to check if it works.
#!/usr/bin/env python3
import cv2 as cv
print(cv.__version__)
show version.
$ chmod +x version.py
$ ./version.py
4.5.4
Build from source code
...
2024.iosdevlog.com4 min read