卸载自带opencv
sudo apt-get purge libopencv* sudo apt autoremove sudo apt-get update
获取opencv源码
编译安装opencv
测试