比如第一个模型检测汽车,第二个模型检测车牌,如何将两个模型串联起来。可以参考 代码。
测试的gstreamer命令如下:
gst-launch-1.0 filesrc location=/home/lpr/us.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! mux.sink_0 nvstreammux name=mux batch-size=1 width=1920 height=1080 nvbuf-memory-type=3 ! nvinfer config-file-path=../../../configs/nvinfer/trafficcamnet_tao/pgie_trafficcamnet_config.yml ! nvtracker name=tracker1 ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so tracker-width=640 tracker-height=384 user-meta-pool-size=128 ! nvinfer config-file-path=../../../configs/nvinfer/LPD_us_tao/sgie_lpd_DetectNet2_us.yml ! nvvideoconvert ! 'video/x-raw(memory:NVMM),format=RGBA' ! nvdsosd ! nvvideoconvert ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=./out.mp4
结果如下:
贴不了图,真是不好用。
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务