SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
OCR's inspection functions

Functions

eErrorType SR_ApplyOCRTestFromImageFile (OCRTestHandle handle, const char *imagePath, OCRTestResult ocrTestResult)
 Apply OCR algorithm to image by file path. More...
 
eErrorType SR_ApplyOCRTestFromImageFileByWideCharPath (OCRTestHandle handle, const wchar_t *imagePath, OCRTestResult ocrTestResult)
 Apply OCR algorithm to image by file path. More...
 
eErrorType SR_ApplyOCRTestFrom8bitImageData (OCRTestHandle handle, const void *imageData, const int height, const int width, const int channels, OCRTestResult ocrTestResult)
 Apply OCR algorithm to 1 or 3 or 4 channels image by 8-bit data. More...
 

Detailed Description

Inspect images by applying Saige Vision's OCR algorithms.
Images can be file path or data array.

Function Documentation

◆ SR_ApplyOCRTestFrom8bitImageData()

eErrorType SR_ApplyOCRTestFrom8bitImageData ( OCRTestHandle  handle,
const void *  imageData,
const int  height,
const int  width,
const int  channels,
OCRTestResult  ocrTestResult 
)

Apply OCR algorithm to 1 or 3 or 4 channels image by 8-bit data.

Parameters
handleOCR file handler
imageData
height
width
channels
[out]ocrTestResult
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.

◆ SR_ApplyOCRTestFromImageFile()

eErrorType SR_ApplyOCRTestFromImageFile ( OCRTestHandle  handle,
const char *  imagePath,
OCRTestResult  ocrTestResult 
)

Apply OCR algorithm to image by file path.

Parameters
handleOCR file handler
imagePath
[out]ocrTestResult
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.

◆ SR_ApplyOCRTestFromImageFileByWideCharPath()

eErrorType SR_ApplyOCRTestFromImageFileByWideCharPath ( OCRTestHandle  handle,
const wchar_t *  imagePath,
OCRTestResult  ocrTestResult 
)

Apply OCR algorithm to image by file path.

Parameters
handleOCR file handler
imagePath
[out]ocrTestResult
Examples
ExampleOCRRuntime.cpp, and ExampleOCRRuntimeSimple.cpp.