Skip to content

docker镜像CDR项目中多视频流检测方法

jianyang edited this page Feb 10, 2022 · 1 revision

CDR项目docker镜像中多视频流检测方法

对于多视频流检测,较为简单,只要在python后原先视频文件地址的基础上叠加视频文件地址即可,具体操作如下:

  • 若单流视频文件检测为如下命令:

    python3 deepstream_yolov5_file.py file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_qHD.h264

    • 则多流检测为(叠加后面的file:///...):

      python3 deepstream_yolov5_file.py file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_qHD.h264 file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_qHD.h264

  • 若rtsp单流实时视频检测为如下命令:

    python3 deepstream_yolov5_rtsp.py rtsp://admin:ak123456@192.168.0.123:554/ch1/main/av_stream

    • 则rtsp多流检测为(后面叠加rtsp://...):

      python3 deepstream_yolov5_rtsp.py rtsp://admin:ak123456@192.168.0.123:554/ch1/main/av_stream rtsp://192.168.0.105:8554/live.ts