CropRoiBox

Function

Records the region of interest (ROI) during model pre-processing in an image task, which is used for coordinate restoration during model post-processing.

Structure Definition

class CropRoiBox {
public:
    float x0;
    float y0;
    float x1;
    float y1;
};

Parameter Description

Parameter

Description

x0

Horizontal coordinate of the upper left corner of the ROI box

y0

Vertical coordinate of the upper left corner of the ROI box

x1

Horizontal coordinate of the lower right corner of the ROI box

y1

Vertical coordinate in the lower right corner of the ROI box