1. Jetson Nano安装opencv2
参考链接:
- 直接输入命令,更推荐使用下一条命令(进入链接1查看需要提前下好的包,这些包我之前都下过了)。
$ pip install opencv-python
- 这个更好,可以看见进度;
$ pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose
- 下载完成,验证如下。
2. 其他
注:此部分为遇到的一些问题。
2.1 下载时在卡在Building wheel for opencv-python (pyproject.toml)
参考链接:
2.2 扩大jetson nano的内存
参考链接:
3. jetson nano安装opencv_jetson nano安装opencv要多久-CSDN博客https://blog.csdn.net/to222/article/details/103055485/?ops_request_misc=&request_id=&biz_id=102&utm_term=jetson%20nano%E4%B8%8B%E8%BD%BDcv2&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-103055485.142%5Ev99%5Epc_search_result_base3&spm=1018.2226.3001.41874. GitHub - JetsonHacksNano/installSwapfile: Install a swap file on the NVIDIA Jetson Nano Developer Kit. This should help with memory pressure issues.https://github.com/JetsonHacksNano/installSwapfile
我看见扩大内存我是很疑惑的,进入链接3中的网址(也就是链接4),里面的描述为:
Note: While you can still use this method to add a swap file, note that newer versions of L4T/JetPack have swap memory as part of the default distribution, implemented through zram. You may choose to use both a swapfile, as implemented here, and the zram swap memory at the same time.
发现该方法使用了Linux的zram技术,原理及使用方法如链接5。
5. 一文读懂|zRAM 内存压缩机制 - 哔哩哔哩 (bilibili.com)https://www.bilibili.com/read/cv26938538/