SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
OCR's inspection results

Functions

eErrorType SR_GetOCRTestNumberOfTextBoxes (OCRTestResult ocrTestResult, int *numberOfOCRTextBoxes)
 Get the number of SR_OCRTextBox. More...
 
eErrorType SR_GetOCRTestTextBoxes (OCRTestResult ocrTestResult, SR_OCRTextBox *ocrTextBoxes)
 Get SR_OCRTextBox s. More...
 
eErrorType SR_GetOCRTestInspectionTime (OCRTestResult ocrTestResult, long *inspectionTimeInLong)
 Get the inspection time. More...
 
eErrorType SR_GetOCRTestInspectionTimeInDouble (OCRTestResult ocrTestResult, double *inspectionTimeInDouble)
 Get the inspection time. More...
 
eErrorType SR_GetOCRTestLoadImageTime (OCRTestResult ocrTestResult, long *imageLoadingTimeInLong)
 Get the image loading time. More...
 
eErrorType SR_GetOCRTestLoadImageTimeInDouble (OCRTestResult ocrTestResult, double *imageLoadingTimeInDouble)
 Get the image loading time. More...
 

Detailed Description

OCR's 의 검사결과는 SR_OCRTextBox 들 입니다. SR_OCRTextBox 은 검출된 텍스트와 텍스트를 둘러싼 박스의 기하학적 정보를 포함하고 있습니다.

// Get the number of boxes
int numTextBoxes = 0;
eErrorType error = SR_GetOCRTestNumberOfTextBoxes(testResult, &numTextBoxes);
SR_OCRTextBox* textBoxes = new SR_OCRTextBox[numTextBoxes];
// Get text data
error = SR_GetOCRTestTextBoxes(testResult, textBoxes);
delete[] textBoxes;
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:30
eErrorType SR_GetOCRTestNumberOfTextBoxes(OCRTestResult ocrTestResult, int *numberOfOCRTextBoxes)
Get the number of SR_OCRTextBox.
eErrorType SR_GetOCRTestTextBoxes(OCRTestResult ocrTestResult, SR_OCRTextBox *ocrTextBoxes)
Get SR_OCRTextBox s.
Structure describing features of a OCR object.
Definition: CommonHeaderDLL.h:277

Function Documentation

◆ SR_GetOCRTestInspectionTime()

eErrorType SR_GetOCRTestInspectionTime ( OCRTestResult  ocrTestResult,
long *  inspectionTimeInLong 
)

Get the inspection time.

Parameters
ocrTestResult
[out]inspectionTimeInLong

◆ SR_GetOCRTestInspectionTimeInDouble()

eErrorType SR_GetOCRTestInspectionTimeInDouble ( OCRTestResult  ocrTestResult,
double *  inspectionTimeInDouble 
)

Get the inspection time.

Parameters
ocrTestResult
[out]inspectionTimeInDouble

◆ SR_GetOCRTestLoadImageTime()

eErrorType SR_GetOCRTestLoadImageTime ( OCRTestResult  ocrTestResult,
long *  imageLoadingTimeInLong 
)

Get the image loading time.

Parameters
ocrTestResult
[out]imageLoadingTimeInLong

◆ SR_GetOCRTestLoadImageTimeInDouble()

eErrorType SR_GetOCRTestLoadImageTimeInDouble ( OCRTestResult  ocrTestResult,
double *  imageLoadingTimeInDouble 
)

Get the image loading time.

Parameters
ocrTestResult
[out]imageLoadingTimeInDouble

◆ SR_GetOCRTestNumberOfTextBoxes()

eErrorType SR_GetOCRTestNumberOfTextBoxes ( OCRTestResult  ocrTestResult,
int *  numberOfOCRTextBoxes 
)

Get the number of SR_OCRTextBox.

Parameters
ocrTestResult
[out]numberOfOCRTextBoxes

◆ SR_GetOCRTestTextBoxes()

eErrorType SR_GetOCRTestTextBoxes ( OCRTestResult  ocrTestResult,
SR_OCRTextBox *  ocrTextBoxes 
)

Get SR_OCRTextBox s.

Parameters
ocrTestResult
[out]ocrTextBoxes
Warning
ocrTextBoxes should be allocated by length of number of objects gathered by SR_GetOCRTestNumberOfTextBoxes.