ros里面有opencv安装包。 如果安装过ros,可以直接使用ros安装。 sudo apt install ros-melodic-opencv-apps 注意:但是这样安装是open2,没有open4。