SaigeTextObject¶
#include <SaigeVisionAPI.h>
The OCR functionality divides into two parts: detecting text areas and recognizing text types within those areas. SaigeVision OCR provides text areas in the form of polygons (arrays of 2D points), and presents the results within a structure containing both positional and textual information.
Public Attributes¶
| Type | Name |
|---|---|
| int | numOfPoints The number of points that make up the text area polygon. |
| double * | points Coordinates of the points in the text area polygon, formatted as x1, y1, x2, y2, ..., xn, yn. |
| double | polygonScore Confidence score for the detected text area. |
| double | textSize The size of the detected text. |
| double | textScore Probability score for the recognized text, averaged across characters. |
| char * | text The detected text string. |
| int | textLength The length of the detected string, excluding the final null character.;. |
Public Attributes Documentation¶
numOfPoints¶
The number of points that make up the text area polygon.
int numOfPoints;
points¶
Coordinates of the points in the text area polygon, formatted as x1, y1, x2, y2, ..., xn, yn.
double * points;
polygonScore¶
Confidence score for the detected text area.
double polygonScore;
textSize¶
The size of the detected text.
double textSize;
textScore¶
Probability score for the recognized text, averaged across characters.
double textScore;
text¶
The detected text string.
char * text;
textLength¶
The length of the detected string, excluding the final null character.;.
int textLength;