微信公众号:OpenCV学堂
关注获取更多计算机视觉与深度学习知识
Jetson换镜像源
wget https://github.com/Qengineering/Install-OpenCV-Jetson-Nano/raw/main/OpenCV-4-8-0.sh
./OpenCV-4-8-0.sh
结果告诉无法访问官方的ubuntu.port的网站,我晕倒!
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
再执行:
sudo gedit /etc/apt/sources.list
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
打开上面的链接,然后选择如下:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
#
sudo apt update
sudo apt upgrade -y
编译OpenCV4.8
先授权可执行
sudo chmod 755 ./OpenCV-4-8-0.sh
然后再次运行下面这个脚本:
./OpenCV-4-8-0.sh
真的可以编译了,然后测试一下,真的是OpenCV4.8了
OpenCV4.8升级Get,从此我又相信Jetson Nano 可以跟OpenCV在一起了!请期待后续更新~~~~~
推荐阅读
OpenCV4.8+YOLOv8对象检测C++推理演示
三行代码实现 TensorRT8.6 C++ 深度学习模型部署
实战 | YOLOv8+OpenCV 实现DM码定位检测与解析