iDRS™ SDK 16
Loading...
Searching...
No Matches
CQualityAssessment_interface.h File Reference

Interface for CQualityAssessment wrapper. More...

Go to the source code of this file.

Functions

CQualityAssessment CQualityAssessment_Create (const CIDRS argIdrs, idrs_exception *pargException)
 Creates a new CQualtityAssessment object to estimate the OCR quality on the provided image.
 
IDRS_UINT CQualityAssessment_EstimateOcrQuality (const CQualityAssessment argCQualityAssessment, const CImage argImage, idrs_exception *pargException)
 Estimate the OCR quality of a given image.
 
IDRS_UINT CQualityAssessment_EstimateOcrQuality2 (const CQualityAssessment argCQualityAssessment, const CImage argImage, const PerspectiveCorners *pcPerspectiveCorners, idrs_exception *pargException)
 Estimate the OCR quality of a given image zone defined by corners.
 
IDRS_UINT CQualityAssessment_EstimateResolution (const CQualityAssessment argCQualityAssessment, const CImage argImage, idrs_exception *pargException)
 Estimates the resolution of the image.
 
void CQualityAssessment_Destroy (CQualityAssessment argCQualityAssessment, idrs_exception *pargException)
 Destroys a CQualityAssessment handle.
 

Detailed Description

Interface for CQualityAssessment wrapper.

Function Documentation

◆ 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
pargExceptionPointer 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
argCQualityAssessmentCQualityAssessment handle to destroy
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ CQualityAssessment_EstimateOcrQuality()

IDRS_UINT CQualityAssessment_EstimateOcrQuality ( const CQualityAssessment  argCQualityAssessment,
const CImage  argImage,
idrs_exception *  pargException 
)

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
argCQualityAssessmentCQualityAssessment handle
argImagethe input image
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
An estimation value between 0 and 100

◆ CQualityAssessment_EstimateOcrQuality2()

IDRS_UINT CQualityAssessment_EstimateOcrQuality2 ( const CQualityAssessment  argCQualityAssessment,
const CImage  argImage,
const PerspectiveCorners pcPerspectiveCorners,
idrs_exception *  pargException 
)

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
argCQualityAssessmentCQualityAssessment handle
argImagethe input image
pcPerspectiveCornerszone corners
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
An estimation value between 0 and 100

◆ CQualityAssessment_EstimateResolution()

IDRS_UINT CQualityAssessment_EstimateResolution ( const CQualityAssessment  argCQualityAssessment,
const CImage  argImage,
idrs_exception *  pargException 
)

Estimates the resolution of the image.

Parameters
argCQualityAssessmentCQualityAssessment handle
argImagethe input image
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The resolution in DPI