Jetson Nano 下安装Deepstream6.0.1
Jetson Nano 环境配置: https://blog.csdn.net/djj199301111/category_11383635.html?spm=1001.2014.3001.5482 JP 4.4.1 deepstream 5.0 参考之前的文章: https://blog.csdn.net/djj199301111/article/details/110186640
环境
JP 4.6.1 deepstream 6.0.1
安装依赖及Gstreamer
sudo apt-get install libssl1.0.0 libgstreamer1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstrtspserver-1.0-0 libjansson4 ffmpeg
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio libgstrtspserver-1.0-dev gstreamer1.0-rtsp
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libx11-dev libjson-glib-dev libgirepository1.0-dev
官网下载对应安装包
下载对应jetson的sdk的tar包
https://developer.nvidia.com/deepstream-getting-started
安装
sudo tar -jxvf deepstream_sdk_v6.0.1_jetson.tbz2 -C /
cd /opt/nvidia/deepstream/deepstream-6.0/
sudo ./install.sh
sudo ldconfig
添加环境变量
sudo vim /etc/ld.so.conf
/opt/nvidia/deepstream/deepstream-6.0/lib/
sudo ldconfig
为了避免报错 No EGL Display 环境变量下添加unset DISPLAY。
sudo vim ~/.bashrc
unset DISPLAY
source ~/.bashrc
查看deepstearm安装情况
deepstream-app --version-all
运行案例():
cd /opt/nvidia/deepstream/deepstream
deepstream-app -c samples/configs/deepstream-app/source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt
如果如下错误: 需要删除缓冲文件
sudo rm ~/.cache/gstreamer-1.0/*
正常运行输出为:
Deepstearm + Python API
- 最新版的python api 官方有编译好的whl下载直接安装就可以:
pyds whl 下载地址: https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases
sudo pip3 install pyds-1.1.1-py3-none-linux_aarch64.whl
cd /opt/nvidia/deepstream/deepstream/sources
sudo git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1
python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264
- 显示推理视频说明成功;不过python的api方式使用,配置起来感觉更加麻烦。
参考
https://blog.csdn.net/zong596568821xp/article/details/105966383 https://blog.csdn.net/symuamua/article/details/104786626
|