从 CentOS 源仓库安装 OpenCV
dnf install opencv opencv-devel opencv-python一旦安装完成,验证 OpenCV是否存在,输入:pkg-config –modversion opencv3.4.1
缺点就是版本老,我php-opencv需要4.0.0+,所以只能编译安装
[……]