SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
OCR's score threshold

Functions

eErrorType SR_GetOCRTestScoreThreshold (OCRTestHandle handle, int *scoreThreshold)
 Get OCR's score threshold. More...
 
eErrorType SR_SetOCRTestScoreThreshold (OCRTestHandle handle, int scoreThreshold, bool writeOnModelFile=true)
 Set OCR's score threshold. More...
 

Detailed Description

OCR's Score threshold

The SR_OCRTextBox, whose score is below Score threshold, are filtered out, so not gathered by SR_GetOCRTestTextBoxes. The default value is the last value set in the Saige Vision software, and is set to 50 if it has not been changed.

Function Documentation

◆ SR_GetOCRTestScoreThreshold()

eErrorType SR_GetOCRTestScoreThreshold ( OCRTestHandle  handle,
int *  scoreThreshold 
)

Get OCR's score threshold.

Parameters
handleocr file handler
[out]scoreThreshold
See also
SR_SetOCRTestScoreThreshold
Examples
ExampleOCRRuntime.cpp.

◆ SR_SetOCRTestScoreThreshold()

eErrorType SR_SetOCRTestScoreThreshold ( OCRTestHandle  handle,
int  scoreThreshold,
bool  writeOnModelFile = true 
)

Set OCR's score threshold.

Parameters
handleocr file handler
scoreThreshold
writeOnModelFileoverwrite on model file or not
See also
SR_GetOCRTestScoreThreshold
Examples
ExampleOCRRuntime.cpp.