TextObjectInfo

Function

Defines text bounding box information.

Structure Definition

class TextObjectInfo {
public:
    float x0;
    float y0;
    float x1;
    float y1;
    float x2;
    float y2;
    float x3;
    float y3;
    float confidence;
    std::string result;
};

Parameter Description

Parameter

Description

x0

Horizontal coordinate of the first vertex of the text bounding box (quadrilateral)

y0

Vertical coordinate of the first vertex of the text bounding box (quadrilateral)

x1

Horizontal coordinate of the second vertex of the text bounding box (quadrilateral)

y1

Vertical coordinate of the second vertex of the text bounding box (quadrilateral)

x2

Horizontal coordinate of the third vertex of the text bounding box (quadrilateral)

y2

Vertical coordinate of the third vertex of the text bounding box (quadrilateral)

x3

Horizontal coordinate of the fourth vertex of the text bounding box (quadrilateral)

y3

Vertical coordinate of the fourth vertex of the text bounding box (quadrilateral)

confidence

Confidence of the text bounding box

result

Recognition result of the text bounding box