SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
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 inspection result is a list of SR_OCRTextBox. SR_OCRTextBox contains geometrical information of box and text(characters).

// 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;

Function Documentation

◆ SR_GetOCRTestInspectionTime()

eErrorType SR_GetOCRTestInspectionTime ( OCRTestResult  ocrTestResult,
long *  inspectionTimeInLong 
)

Get the inspection time.

Parameters
ocrTestResult
[out]inspectionTimeInLong
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.

◆ 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
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.

◆ 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
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.

◆ 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.
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.
SR_GetOCRTestNumberOfTextBoxes
eErrorType SR_GetOCRTestNumberOfTextBoxes(OCRTestResult ocrTestResult, int *numberOfOCRTextBoxes)
Get the number of SR_OCRTextBox.
eErrorType
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:25
SR_GetOCRTestTextBoxes
eErrorType SR_GetOCRTestTextBoxes(OCRTestResult ocrTestResult, SR_OCRTextBox *ocrTextBoxes)
Get SR_OCRTextBox s.
SR_OCRTextBox
Structure describing features of a OCR object.
Definition: CommonHeaderDLL.h:237