deepstream学习(一)安装

(1)拉取镜像

docker pull nvcr.io/nvidia/deepstream:6.0-triton

(2)进入docker

xhost +
docker run --gpus '"'device=0'"' -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.0 nvcr.io/nvidia/deepstream:6.0-triton

 (3) 运行示例

cd /opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app
deepstream-app -c source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

 (4)pyhtonbinding

 

apt-get update
apt install python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
    python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
    libglib2.0-dev-bin python-gi-dev libtool m4 autoconf automake

 

 (5)  克隆python示例项目及子项目

 

cd /opt/nvidia/deepstream/deepstream/sources
export GIT_SSL_NO_VERIFY=true 
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
cd deepstream_python_apps
git submodule update --init

(6)安装gst-python

cd  gst-python
./autogen.sh
make
make install

(7)编译安装python-binding

cd  bindings/
mkdir build
cd build
cmake ..  -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=8
make
pip3 install ./pyds*.whl

(8)跑一个示例

# 运行例子1
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 

 

参考:

        https://blog.csdn.net/weixin_49196365/article/details/121459174

       https://blog.csdn.net/u012160945/article/details/121250125

 

posted @ 2022-08-10 11:26  牧马人夏峥  阅读(394)  评论(0编辑  收藏  举报