deepstream主要使用C语言接口,也有python的接口封装,虽然没有很完善,但是可以先用python的接口快速调试。
$ sudo apt-get install python-gi-dev
$ export GST_LIBS="-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0"
$ export GST_CFLAGS="-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include"
$ git clone https://github.com/GStreamer/gst-python.git
$ cd gst-python
$ git checkout 1a8f48a
$ ./autogen.sh PYTHON=python3
$ ./configure PYTHON=python3
$ make
$ sudo make install
pyds.so
cd /opt/nvidia/deepstream/deepstream/lib
python3 setup.py install
cd /opt/nvidia/deepstream/deepstream-5.0/sources
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
设置GST_DEBUG
级别
GST_DEBUG= python3 [options]
pyds.so
目前需要手动编译生成,
cd /opt/nvidia/deepstream/deepstream/lib
python3 setup.py install
pyds.so
和deepstream支持的版本不一致
大部分函数还可以使用,论坛提问建议更新最新版