jetson nano 编译安装opencv
作者:互联网
安装opencv
1.首先扩大jetson nano的内存,因为要下载opencv的源码并编译,之后还要安装tensorflow,所以可能内存不够大,要增加内存。可以进入github:https://github.com/JetsonHacksNano查看并下载
或者直接在命令行操作
git clone https://github.com/JetsonHacksNano/installSwapfile
./installSwapfile.sh #编译文件,默认扩大6G内存
2.下载编译opencv
git clone https://github.com/JetsonHacksNano/buildOpenCV
./buildOpenCV.sh #编译opencv
编译可能遇到问题如下:
fatal error: boostdesc_bgm.i: No such file or directory
解决办法:
以下文件下载失败:
boostdesc_bgm.i
boostdesc_bgm_bi.i
boostdesc_bgm_hd.i
boostdesc_lbgm.i
boostdesc_binboost_064.i
boostdesc_binboost_128.i
boostdesc_binboost_256.i
vgg_generated_120.i
vgg_generated_64.i
vgg_generated_80.i
vgg_generated_48.i
下载: link.缺失的文件到指定路径下home/nvidia/opencv_contrib/modules/xfeatures2d/src/
3.测试
python3
import cv2
cv2.__version__
参考:https://blog.csdn.net/to222/article/details/103055485
https://blog.csdn.net/u011736771/article/details/85960300
标签:vgg,nano,opencv,boostdesc,bgm,编译,https,jetson 来源: https://blog.csdn.net/qq_32897939/article/details/117819660