like the yolov4's detection custom parse function implemented in this repo, its output is not identity to the tao output. I know it is because the yolov4 parse need a ratio param, which is computed from frame_original_h, frame_original_w, network_input_w and network_input_w, but in current detection parse function interface, the frame_orignal_h and orignal_w can not be obtained yet.
So, I think the current detection parse function interface should fix this bug like to add feild like frame_orignal_h and frame_orignal_w in the NvDsInferNetworkInfo struct.
current:
typedef struct
{
/ Holds the input width for the model. */
unsigned int width;
/* Holds the input height for the model. /
unsigned int height;
/ Holds the number of input channels for the model. */
unsigned int channels;
} NvDsInferNetworkInfo;
after added:
typedef struct
{
/ Holds the input width for the model. */
unsigned int width;
/* Holds the input height for the model. /
unsigned int height;
/ Holds the number of input channels for the model. */
unsigned int channels;
unsigned int frame_orignal_h;
unsigned int frame_orignal_w;
} NvDsInferNetworkInfo;
like the yolov4's detection custom parse function implemented in this repo, its output is not identity to the tao output. I know it is because the yolov4 parse need a ratio param, which is computed from frame_original_h, frame_original_w, network_input_w and network_input_w, but in current detection parse function interface, the frame_orignal_h and orignal_w can not be obtained yet.
So, I think the current detection parse function interface should fix this bug like to add feild like frame_orignal_h and frame_orignal_w in the NvDsInferNetworkInfo struct. current: typedef struct { / Holds the input width for the model. */ unsigned int width; /* Holds the input height for the model. / unsigned int height; / Holds the number of input channels for the model. */ unsigned int channels; } NvDsInferNetworkInfo; after added: typedef struct { / Holds the input width for the model. */ unsigned int width; /* Holds the input height for the model. / unsigned int height; / Holds the number of input channels for the model. */ unsigned int channels;