SaigeTextObject¶
#include <SaigeVisionAPI.h>
OCR功能分为两部分:检测文本区域和识别这些区域内的文本类型。 SaigeVision OCR以多边形(二维点数组)的形式提供文本区域,并在包含位置和文本信息的结构中呈现结果。
Public Attributes¶
| Type | Name |
|---|---|
| int | numOfPoints 组成文本区域多边形的点的数量。 |
| double * | points 文本区域多边形中点的坐标,格式为 x1, y1, x2, y2, ..., xn, yn。 |
| double | polygonScore 检测到的文本区域的置信度分数。 |
| double | textSize 检测到的文本的大小。 |
| double | textScore 识别文本的概率得分,基于各个字符的平均分。 |
| char * | text 检测到的文本字符串。 |
| int | textLength 检测到的字符串的长度,排除最后的空字符。 |
Public Attributes Documentation¶
numOfPoints¶
组成文本区域多边形的点的数量。
int numOfPoints;
points¶
文本区域多边形中点的坐标,格式为x1, y1, x2, y2, ..., xn, yn。
double * points;
polygonScore¶
检测到的文本区域的置信度分数。
double polygonScore;
textSize¶
检测到的文本的大小。
double textSize;
textScore¶
识别文本的概率得分,基于各个字符的平均分。
double textScore;
text¶
检测到的文本字符串。
char * text;
textLength¶
检测到的字符串的长度,排除最后的空字符。
int textLength;