Please use nvdsosd to draw the bbox and print text. Gst-nvdsosd — DeepStream 6.3 Release documentation
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! “video/x-raw,format=(string)UYVY” ! nvvideoconvert ! “video/x-raw(memory:NVMM),width=1280,height=720,framerate=30/1” ! nvvideoconvert ! “video/x-raw,format=(string)NV12,width=1280,height=720,framerate=30/1” ! nvvideoconvert ! mux.sink_0 nvstreammux live-source=1 name=mux batch-size=1 width=1280 height=720 ! nvinfer config-file-path=dstest1_pgie_config.txt batch-size=1 ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! nvv4l2h264enc ! h264parse ! queue ! flvmux name=muxer alsasrc device=hw:1 ! audioresample ! “audio/x-raw,rate=48000” ! queue ! voaacenc bitrate=32000 ! aacparse ! queue ! muxer. muxer. ! rtmpsink location= rtmp://a.rtmp.youtube.com/live2/xxxxxxxx sync=false -v