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

Typedefs

typedef void * OCRTestHandle
 OCR file handler. More...
 
typedef void * OCRTestResult
 OCR inspection results handler. More...
 

Functions

OCRTestHandle SR_CreateOCRTestHandle (const char *ocrBoxFilePath, const char *ocrTextFilePath)
 Create a OCRTestHandle via multi byte char path. More...
 
eErrorType SR_CreateOCRTestHandle_ErrorType (OCRTestHandle *ocrTestHandle, const char *ocrBoxFilePath, const char *ocrTextFilePath)
 Create a OCRTestHandle via multi byte char path. More...
 
OCRTestHandle SR_CreateOCRTestHandleByWideCharPath (const wchar_t *ocrBoxFilePath, const wchar_t *ocrTextFilePath)
 Create a OCRTestHandle via wide char path. More...
 
eErrorType SR_CreateOCRTestHandleByWideCharPath_ErrorType (OCRTestHandle *ocrTestHandle, const wchar_t *ocrBoxFilePath, const wchar_t *ocrTextFilePath)
 Create a OCRTestHandle via wide char path. More...
 
OCRTestResult SR_MakeOCRTestResult ()
 Construct a OCRTestResult. More...
 
eErrorType SR_MakeOCRTestResult_ErrorType (OCRTestResult *ocrTestResult)
 Construct a OCRTestResult. More...
 

Detailed Description

Construct OCRTestHandle or OCRTestResult.

Typedef Documentation

◆ OCRTestHandle

typedef void* OCRTestHandle

OCR file handler.

OCRTestHandle 은 OCR 파일을 관장하는 handle입니다. 하나의 OCRTestHandle 은 box-stage, text-stage, 두 stage에 대해 각각 하나씩 총 2개의 파일을 관리합니다.

See also
SR_CreateOCRTestHandleByWideCharPath, SR_DestroyOCRTestHandle

◆ OCRTestResult

typedef void* OCRTestResult

OCR inspection results handler.

OCRTestResult 는 OCR 검사 결과를 다루는 handle입니다. OCRTestResult 를 Inspection functions 의 입력으로 넣어주면 검사 후 검사 결과 정보(SR_OCRTextBox)들을 받아 올 수 있습니다.

See also
SR_MakeOCRTestResult, SR_DeleteOCRTestResult

Function Documentation

◆ SR_CreateOCRTestHandle()

OCRTestHandle SR_CreateOCRTestHandle ( const char *  ocrBoxFilePath,
const char *  ocrTextFilePath 
)

Create a OCRTestHandle via multi byte char path.

Parameters
ocrBoxFilePathfile path of box-stage model (.srOcrBox)
ocrTextFilePathfile path of text-stage model (.srOcrText)
Returns
OCR file handler. Return nullptr if ocrBoxFilePath is invalid.
See also
SR_CreateOCRTestHandleByWideCharPath
Warning
OCRTestHandle should be destroyed by SR_DestroyOCRTestHandle after inspection finished.

◆ SR_CreateOCRTestHandle_ErrorType()

eErrorType SR_CreateOCRTestHandle_ErrorType ( OCRTestHandle *  ocrTestHandle,
const char *  ocrBoxFilePath,
const char *  ocrTextFilePath 
)

Create a OCRTestHandle via multi byte char path.

Parameters
[out]OCRfile handler
ocrBoxFilePathfile path of box-stage model (.srOcrBox)
ocrTextFilePathfile path of text-stage model (.srOcrText)
See also
SR_CreateOCRTestHandleByWideCharPath
Warning
OCRTestHandle should be destroyed by SR_DestroyOCRTestHandle after inspection finished.

◆ SR_CreateOCRTestHandleByWideCharPath()

OCRTestHandle SR_CreateOCRTestHandleByWideCharPath ( const wchar_t *  ocrBoxFilePath,
const wchar_t *  ocrTextFilePath 
)

Create a OCRTestHandle via wide char path.

Parameters
ocrBoxFilePathfile path of box-stage model (.srOcrBox)
ocrTextFilePathfile path of text-stage model (.srOcrText)
Returns
OCR file handler. Return nullptr if ocrBoxFilePath is invalid.
See also
SR_CreateOCRTestHandle
Warning
OCRTestHandle should be destroyed by SR_DestroyOCRTestHandle after inspection finished.

◆ SR_CreateOCRTestHandleByWideCharPath_ErrorType()

eErrorType SR_CreateOCRTestHandleByWideCharPath_ErrorType ( OCRTestHandle *  ocrTestHandle,
const wchar_t *  ocrBoxFilePath,
const wchar_t *  ocrTextFilePath 
)

Create a OCRTestHandle via wide char path.

Parameters
[out]OCRfile handler
ocrBoxFilePathfile path of box-stage model (.srOcrBox)
ocrTextFilePathfile path of text-stage model (.srOcrText)
See also
SR_CreateOCRTestHandle
Warning
OCRTestHandle should be destroyed by SR_DestroyOCRTestHandle after inspection finished.

◆ SR_MakeOCRTestResult()

OCRTestResult SR_MakeOCRTestResult ( )

Construct a OCRTestResult.

Warning
OCRTestResult should be destroyed by SR_DeleteOCRTestResult after inspection finished.

◆ SR_MakeOCRTestResult_ErrorType()

eErrorType SR_MakeOCRTestResult_ErrorType ( OCRTestResult *  ocrTestResult)

Construct a OCRTestResult.

Parameters
[out]OCRtest result handler
Warning
OCRTestResult should be destroyed by SR_DeleteOCRTestResult after inspection finished.