dnf install -y python36-devel
PYTHON3_NUMPY_INCLUDE_DIRS
/usr/local/lib64/python3.6/site-packages/numpy/core/include ~/.local/lib/python3.6/site-packages/numpy/core/include
Example
https://github.com/sinferwu/learnopencv
https://github.com/spmallick/learnopencv
https://wp.kntu.ac.ir/nasihatkon/teaching/cvug/s2018/
https://learnopencv.com/homography-examples-using-opencv-python-c/
https://learnopencv.com/understanding-lens-distortion/
https://learnopencv.com/install-opencv-4-on-centos-7/
https://blog.csdn.net/qq_38589460/article/details/106441707
https://docs.opencv.org/4.5.3/d7/d9f/tutorial_linux_install.html
https://github.com/wbadry/Simple-OpenCV-CPP-VSCode
"/usr/local/include/opencv4"
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-g",
"testing.cpp",
"-o",
"testing",
"`pkg-config", "--cflags", "--libs" ,"opencv4`"
],
"options": {
"cwd": "${workspaceFolder}/src"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: /usr/bin/g++"
}
]
}
Install OpenCV 4 on CentOS 7 (C++ and Python)
加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.conf"下方增加
include ld.so.conf.d/*.conf /usr/local/lib64 /usr/local/lib
echo "/usr/local/lib64" >> /etc/ld.so.conf echo "/usr/local/lib" >> /etc/ld.so.conf
sudo ln -s /usr/local/lib64/pkgconfig/opencv4.pc /usr/share/pkgconfig/ sudo ldconfig
运行:/sbin/ldconfig –v更新一下配置即可。
临时解决方案
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
sudo dnf install gtk3-devel -y
sudo dnf install libcanberra-gtk3 -y
-- GUI: GTK3
-- GTK+: YES (ver 3.22.30)
或者GTK2
sudo dnf install gtk2-devel -y
sudo dnf install libcanberra-gtk2 -y
https://zhuanlan.zhihu.com/p/363035298
https://linuxize.com/post/how-to-install-opencv-on-centos-8/
https://segmentfault.com/a/1190000023185411
https://qengineering.eu/install-caffe-on-ubuntu-18.04-with-opencv-4.4.html
https://programmer.ink/think/mac-environment-install-opencv-vscode-debugging-c-program.html