旭日X3派编译opencv4.2
sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libgtk2.0-dev libatlas-base-dev -y
2 下载opencv4.2 和contrib 扩展模块。
下载opencv4.2 和opencv_contrib-4.2.0
链接:https://pan.baidu.com/s/1O9hAts_s635esRt8nSHDdg
提取码:yrhx
链接:https://pan.baidu.com/s/1SRNBXMKU3GDesQWjdiEuZg
提取码:7g25
3
OPENCV_ENABLE_NONFREE 是使用专利相关的算法
cd /var sunrise@ubuntu:/var$ sudo dd if=/dev/zero of=swap bs=2M count=1024 1024+0 records in 1024+0 records out 2147483648 bytes (2.1 GB, 2.0 GiB) copied, 52.3633 s, 41.0 MB/s sunrise@ubuntu:/var$ sudo mkswap /var/swap mkswap: /var/swap: insecure permissions 0644, 0600 suggested. Setting up swapspace version 1, size = 2 GiB (2147479552 bytes) no label, UUID=32c5dc15-2283-48e0-9c7a-43f8ab1776bc sunrise@ubuntu:/var$ sunrise@ubuntu:/var$ sudo swapon /var/swap /var/swap sunrise@ubuntu:/var$ sudo swapon /var/swap swapon: /var/swap: insecure permissions 0644, 0600 suggested. sunrise@ubuntu:/var$ free total used free shared buff/cache available Mem: 2029888 628928 13556 9568 1387404 1370680 Swap: 2097148 0 2097148 sunrise@ubuntu:/var$