https://cloud.tencent.com/developer/article/1491605
Qt Creator 添加配置
INCLUDEPATH += /usr/local/include/opencv4
LIBS +=/usr/local/lib/libopencv_core.so\
/usr/local/lib/libopencv_highgui.so\
/usr/local/lib/libopencv_imgproc.so\
/usr/local/lib/libopencv_photo.so\
/usr/local/lib/libopencv_videoio.so\
/usr/local/lib/libopencv_calib3d.so\
/usr/local/lib/libopencv_dnn.so\
/usr/local/lib/libopencv_features2d.so\
/usr/local/lib/libopencv_dnn.so\
/usr/local/lib/libopencv_flann.so\
/usr/local/lib/libopencv_gapi.so\
/usr/local/lib/libopencv_imgcodecs.so\
/usr/local/lib/libopencv_ml.so\
/usr/local/lib/libopencv_objdetect.so\
/usr/local/lib/libopencv_stitching.so\
/usr/local/lib/libopencv_video.so