deepstream_tao_apps icon indicating copy to clipboard operation
deepstream_tao_apps copied to clipboard

Possible bug in BBox util struct

Open clogwog opened this issue 1 year ago • 1 comments
trafficstars

Doesn't float center_y() { return right + height() / 2; } look wrong ?

I'd expect it to be something like: float center_y() { return top + height() / 2; }

typedef struct {
    float left;
    float top;
    float right;
    float bottom;

    float width() { return right - left; }
    float height() { return bottom - top; }
    float center_x() { return left + width() / 2; }
    float center_y() { return right + height() / 2; }
}BBox;

From : https://github.com/NVIDIA-AI-IOT/deepstream_tao_apps/blob/4a8c6abce7b4e389d6802b634944e00b29d21e1e/apps/tao_others/deepstream-faciallandmark-app/ds_facialmark_meta.h#L53

clogwog avatar Apr 03 '24 01:04 clogwog

created PR https://github.com/NVIDIA-AI-IOT/deepstream_tao_apps/pull/92

clogwog avatar Apr 03 '24 01:04 clogwog