deepstream objectDetector_Yolo code error

static void addBBoxProposal(const float bx, const float by, const float bw, const float bh,
const uint stride, const uint& netW, const uint& netH, const int maxIndex,
const float maxProb, std::vector& binfo)
{
NvDsInferParseObjectInfo bbi = convertBBox(bx, by, bw, bh, stride, netW, netH);
if (((bbi.left + bbi.width) > netW) || ((bbi.top + bbi.height) > netH)) return;

bbi.detectionConfidence = 1;
bbi.classId = maxIndex;
binfo.push_back(bbi);

}

if (((bbi.left + bbi.width) > netW) || ((bbi.top + bbi.height) > netH)) return;
some bbox maybe delete when object is on the edge of the image

Have you met some issues when the object is on the edge of the image?

yes some bbox deleted when object is on the edge of the image and the predicted bbox extend the netW or netH, in addBBoxProposal.
fix up the issue by delete the line
if (((bbi.left + bbi.width) > netW) || ((bbi.top + bbi.height) > netH)) return;
in addBBoxProposal
and change the size of rect.width and rect.height in gstnvinfer_meta_utils.cpp

now i find nvdcf sometime two person has same object_id , where can i get nvdcf source code

OK, you can modify the source code to save the object on the edge.
for nvdcf, the low level lib is not open source.

#3 now i find nvdcf sometime two person has same object_id , where can i get nvdcf source code
Can you start a new topic and give the details how to reproduce?

In gstnvinfer_meta_utils.cpp -> attach_metadata_detector(), there is also bbox checking, please attention.

/* Check if the scaled box co-ordinates meet the detection filter criteria.
     * Skip the box if it does not. */
    if (obj.width < filter_params.detectionMinWidth)
      continue;
    if (obj.height < filter_params.detectionMinHeight)
      continue;
    if (filter_params.detectionMaxWidth > 0 &&
        obj.width > filter_params.detectionMaxWidth)
      continue;
    if (filter_params.detectionMaxHeight > 0 &&
        obj.width > filter_params.detectionMaxHeight)
      continue;
    if (obj.top < filter_params.roiTopOffset)
      continue;
    if (obj.top + obj.height >
        (frame.input_surf_params->height - filter_params.roiBottomOffset))
      continue;