mkdir ~/opencv_build && cd ~/opencv_build git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git 在撰写本文时,github仓库中的默认版本为4.3.0。 如果要安装旧版本的OpenCV,请在cd上同时打开opencv和opencv_contrib目录,然后运行git checkout <opencv-versi...