################################################################################ # Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. ################################################################################ [application] enable-perf-measurement=1 perf-measurement-interval-sec=5 #gie-kitti-output-dir=streamscl [tiled-display] columns=2 enable=1 gpu-id=0 height=1080 nvbuf-memory-type=0 rows=2 width=1920 [source0] enable=1 #Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP type=3 uri=file://../../Video_20210829112734_032.avi num-sources=1 gpu-id=0 nvbuf-memory-type=0 rtsp-reconnect-interval-sec=15 # smart record specific fields, valid only for source type=4 # 0 = disable, 1 = through cloud events, 2 = through cloud + local events smart-record=0 # 0 = mp4, 1 = mkv smart-rec-container=0 rtsp-reconnect-interval-sec=15 smart-rec-dir-path=/home/david/media/camera_0 smart-rec-file-prefix=smart_record smart-rec-interval=600 smart-rec-start-time=0 smart-rec-video-cache=20 #latency=2500 [source1] enable=1 #Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP type=3 uri=file://../../us_car_test2.mp4 num-sources=1 gpu-id=0 nvbuf-memory-type=0 rtsp-reconnect-interval-sec=15 # smart record specific fields, valid only for source type=4 # 0 = disable, 1 = through cloud events, 2 = through cloud + local events smart-record=0 # 0 = mp4, 1 = mkv smart-rec-container=0 rtsp-reconnect-interval-sec=15 smart-rec-dir-path=/home/david/media/camera_1 smart-rec-file-prefix=smart_record smart-rec-interval=600 smart-rec-start-time=0 smart-rec-video-cache=20 #latency=2500 [source2] enable=1 #Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP type=3 uri=file://../../BGE-8765.mp4 num-sources=1 gpu-id=0 nvbuf-memory-type=0 rtsp-reconnect-interval-sec=15 # smart record specific fields, valid only for source type=4 # 0 = disable, 1 = through cloud events, 2 = through cloud + local events smart-record=0 # 0 = mp4, 1 = mkv smart-rec-container=0 rtsp-reconnect-interval-sec=15 smart-rec-dir-path=/home/david/media/camera_2 smart-rec-file-prefix=smart_record smart-rec-interval=600 smart-rec-start-time=0 smart-rec-video-cache=20 #latency=2500 [source3] enable=1 #Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP type=3 uri=file://../../BJH-7968.mp4 num-sources=1 gpu-id=0 nvbuf-memory-type=0 rtsp-reconnect-interval-sec=15 # smart record specific fields, valid only for source type=4 # 0 = disable, 1 = through cloud events, 2 = through cloud + local events smart-record=0 # 0 = mp4, 1 = mkv smart-rec-container=0 rtsp-reconnect-interval-sec=15 smart-rec-dir-path=/home/david/media/camera_3 smart-rec-file-prefix=smart_record smart-rec-interval=600 smart-rec-start-time=0 smart-rec-video-cache=20 #latency=2500 [sink0] enable=1 gpu-id=0 #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker type=2 nvbuf-memory-type=0 source-id=0 sync=0 #1=h264 2=h265 codec=1 bitrate=4000000 # set below properties in case of RTSPStreaming rtsp-port=8554 udp-port=5400 [sink0_2] enable=0 source-id=0 #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker type=6 nvbuf-memory-type=0 msg-conv-config=dstest5_msgconv_sample_config.txt #(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload #(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal #(256): PAYLOAD_RESERVED - Reserved type #(257): PAYLOAD_CUSTOM - Custom schema payload msg-conv-payload-type=1 msg-conv-msg2p-lib=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_msgconv.so msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so #Provide your msg-broker-conn-str here msg-broker-conn-str=192.168.1.2;9092;quickstart-events topic=quickstart-events #Optional: msg-broker-config=cfg_kafka.txt [sink1] enable=1 gpu-id=0 #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker type=2 nvbuf-memory-type=0 source-id=1 sync=0 #1=h264 2=h265 codec=1 bitrate=4000000 # set below properties in case of RTSPStreaming rtsp-port=8554 udp-port=5400 [sink2] enable=1 gpu-id=0 #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker type=2 nvbuf-memory-type=0 source-id=2 sync=0 #1=h264 2=h265 codec=1 bitrate=4000000 # set below properties in case of RTSPStreaming rtsp-port=8554 udp-port=5400 [sink3] enable=1 gpu-id=0 #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker type=2 nvbuf-memory-type=0 source-id=3 sync=0 #1=h264 2=h265 codec=1 bitrate=4000000 # set below properties in case of RTSPStreaming rtsp-port=8554 udp-port=5400 [message-converter] enable=0 msg-conv-config=dstest5_msgconv_sample_config.txt #(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload #(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal #(256): PAYLOAD_RESERVED - Reserved type #(257): PAYLOAD_CUSTOM - Custom schema payload msg-conv-payload-type=0 # Name of library having custom implementation. #msg-conv-msg2p-lib= # Id of component in case only selected message to parse. #msg-conv-comp-id= # Configure this group to enable cloud message consumer. [message-consumer0] enable=0 proto-lib=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so conn-str=; config-file= subscribe-topic-list=;; # Use this option if message has sensor name as id instead of index (0,1,2 etc.). #sensor-list-file=dstest5_msgconv_sample_config.txt [osd] enable=1 gpu-id=0 border-width=1 text-size=16 text-color=1;1;1;1; text-bg-color=0.3;0.3;0.3;1 font=Arial show-clock=0 clock-x-offset=800 clock-y-offset=820 clock-text-size=14 clock-color=1;0;0;0 nvbuf-memory-type=0 [streammux] gpu-id=0 ##Boolean property to inform muxer that sources are live batch-size=4 ##time out in usec, to wait after the first buffer is available ##to push the batch even if the complete batch is not formed batched-push-timeout=40000 ## Set muxer output width and height width=1920 height=1080 ##Enable to maintain aspect ratio wrt source, and allow black borders, works ##along with width, height properties enable-padding=0 ## If set to TRUE, system timestamp will be attached as ntp timestamp ## If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached live-source=0 attach-sys-ts-as-ntp=1 [tracker] enable=1 gpu-id=0 tracker-width=640 tracker-height=384 #ll-config-file required for DCF/IOU only ll-lib-file=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_mot_klt.so ll-config-file=iou_config.txt #ll-config-file=tracker_config.yml #ll-lib-file=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_nvdcf.so enable-batch-process=1 [primary-gie] #infer-raw-output-dir=../../../../../samples/primary_detector_raw_output/ bbox-border-color0=1;0;0;1 bbox-border-color1=0;1;1;1 bbox-border-color2=0;1;1;1 bbox-border-color3=0;1;0;1 bbox-border-color4=1;1;0;1 bbox-border-color5=1;0;0;1 batch-size=4 config-file=../../../configs/yolov4_Vehicle_640_384/pgie_yolov4_tlt_config.txt enable=1 gie-unique-id=1 gpu-id=0 interval=0 labelfile-path=../../../configs/yolov4_Vehicle_640_384/model_output_labels.txt model-engine-file=../../../models/yolov4_Vehicle_640_384/yolov4_resnet18_pruned_b1_m64_int8.engine #nvbuf-memory-type=0 [secondary-gie0] batch-size=16 config-file=../../../configs/dssd_licensePlate/sgie_dssd_tlt_config.txt enable=1 gie-unique-id=2 gpu-id=0 labelfile-path=../../../configs/dssd_licensePlate/model_output_labels.txt model-engine-file=../../../models/dssd_licensePlate/dssd_b1_m64_fp16.engine operate-on-class-ids=0;1;2;4 operate-on-gie-id=1 [secondary-gie1] batch-size=16 config-file=sgie_lpr_config_us.txt enable=1 gie-unique-id=3 gpu-id=0 labelfile-path=us_lp_characters.txt model-engine-file=../../../models/lprnet/lpr_us_onnx_b64.engine operate-on-class-ids=0;1;2;3;4 operate-on-gie-id=2 [secondary-gie2] batch-size=16 config-file=../../../configs/Secondary_CarTypes/sgie_carType_config.txt enable=1 gie-unique-id=4 gpu-id=0 labelfile-path=../../../configs/Secondary_CarTypes/labels.txt model-engine-file=../../../models/Secondary_CarTypes/resnet18_b4_m64_gpu0_int8.engine operate-on-class-ids=0;1;4 operate-on-gie-id=1 [secondary-gie3] batch-size=16 config-file=../../../configs/Secondary_CarColor/sgie_carColor_config.txt enable=1 gie-unique-id=5 gpu-id=0 labelfile-path=../../../configs/Secondary_CarColor/labels.txt model-engine-file=../../../models/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine operate-on-class-ids=0;1;4 operate-on-gie-id=1 [secondary-gie4] batch-size=16 config-file=../../../configs/Secondary_CarMake/sgie_carMake_config.txt enable=1 gie-unique-id=6 gpu-id=0 labelfile-path=../../../configs/Secondary_CarMake/labels.txt model-engine-file=../../../models/Secondary_CarMake/resnet18_b4_m64_gpu0_int8.engine operate-on-class-ids=0;1;4 operate-on-gie-id=1 [img-save] enable=1 frame-to-skip-rules-path=configs/capture_time_rules.csv max-confidence=0.5 min-box-height=48 min-box-width=48 min-confidence=0.1 output-folder-path=/home/david/plate/error save-img-cropped-obj=0 save-img-full-frame=1 second-to-skip-interval=600 [ds-example] enable=0 full-frame=1 gpu-id=0 processing-height=1080 processing-width=1920 unique-id=15 [nvds-analytics] enable=1 config-file=config_nvdsanalytics.txt [tests] file-loop=0