Problem merging two camera streams using nvcompositor and forwarding merged video to the Darknet

Hi,
Please refer to
[Gstreamer] nvvidconv, BGR as INPUT - #2 by DaneLLL
BGR format is not supported by most hardware engines and need to utilize CPU. May not bring good performance on Jetson Nano.

We have DeepStream SDK for running deep learning inference. By default it demonstrates ResNet10 and

/opt/nvidia/deepstream/deepstream-5.1/sources/objectDetector_FasterRCNN:
config_infer_primary_fasterRCNN.txt   labels.txt                        README
deepstream_app_config_fasterRCNN.txt  nvdsinfer_custom_impl_fasterRCNN

/opt/nvidia/deepstream/deepstream-5.1/sources/objectDetector_SSD:
config_infer_primary_ssd.txt   nvdsinfer_custom_impl_ssd
deepstream_app_config_ssd.txt  README

/opt/nvidia/deepstream/deepstream-5.1/sources/objectDetector_Yolo:
config_infer_primary_yoloV2_tiny.txt   deepstream_app_config_yoloV3.txt
config_infer_primary_yoloV2.txt        labels.txt
config_infer_primary_yoloV3_tiny.txt   nvdsinfer_custom_impl_Yolo
config_infer_primary_yoloV3.txt        prebuild.sh
deepstream_app_config_yoloV2_tiny.txt  README
deepstream_app_config_yoloV2.txt       yolov3-calibration.table.trt7.0
deepstream_app_config_yoloV3_tiny.txt

Would suggest check these demonstrations and replace with Darknet.