Interface for CQualityAssessment wrapper.
More...
Go to the source code of this file.
Interface for CQualityAssessment wrapper.
◆ CQualityAssessment_Create()
| CQualityAssessment CQualityAssessment_Create |
( |
const CIDRS |
argIdrs, |
|
|
idrs_exception * |
pargException |
|
) |
| |
Creates a new CQualtityAssessment object to estimate the OCR quality on the provided image.
- Returns
- The newly created CQualityAssessment object.
- Parameters
-
| pargException | Pointer to exception structure that will be filled if an exception occurs |
◆ CQualityAssessment_Destroy()
| void CQualityAssessment_Destroy |
( |
CQualityAssessment |
argCQualityAssessment, |
|
|
idrs_exception * |
pargException |
|
) |
| |
Destroys a CQualityAssessment handle.
- Parameters
-
| argCQualityAssessment | CQualityAssessment handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
◆ CQualityAssessment_EstimateOcrQuality()
Estimate the OCR quality of a given image.
If the result is:
- Between 0 and 50: the conditions for OCR are bad
- Between 50 and 90 : the conditions for OCR are acceptable
- Between 90 and 100 : the conditions for OCR are excellent
- Parameters
-
| argCQualityAssessment | CQualityAssessment handle |
| argImage | the input image |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
- Returns
- An estimation value between 0 and 100
◆ CQualityAssessment_EstimateOcrQuality2()
Estimate the OCR quality of a given image zone defined by corners.
If the result is:
- Between 0 and 50: the conditions for OCR are bad
- Between 50 and 90 : the conditions for OCR are acceptable
- Between 90 and 100 : the conditions for OCR are excellent
- Parameters
-
| argCQualityAssessment | CQualityAssessment handle |
| argImage | the input image |
| pcPerspectiveCorners | zone corners |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
- Returns
- An estimation value between 0 and 100
◆ CQualityAssessment_EstimateResolution()
Estimates the resolution of the image.
- Parameters
-
| argCQualityAssessment | CQualityAssessment handle |
| argImage | the input image |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
- Returns
- The resolution in DPI