ImgQualityControlExecute

Top  Previous  Next

Prototype

 

ImgQualityControlExecute(intHandle, intFrontImage, intBackImage, strFileName)

 

Description

 

Performs the Check21 compliant quality control on front and back side of a check.

 

Parameters

 

intHandle: integer valure representing the handle of initialized quality control session.

intFrontImageHandle: integer valure representing the handle of front image

intBackImageHandle: integer valure representing the handle of back image

strFileName: string value representing the name of file

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

// This example perform QC on checks built as 2 pages TIFF file each

 

// Perform this operation only if current image is its the first one of file

if _CurrentPage=0 then

begin

 

 // Initialize the Check21 quality control session with default values

 qcSession:=ImgQualityControlInitialize;

 

 // Set a max negative and positive angle of skew allowd to pass the QC different from default

 ImgQualityControlSetParameter(qcSession,20, -3); // -0.3°

 ImgQualityControlSetParameter(qcSession,21, 3); // +0.3°

 

 // Load back side of check, the second image of the file

 BackSide:=ImgOpen(_CurrentInputFile,1);

 

 // Performs the quality control checking

 ImgQualityControlExecute(qcSession,_CurrentImage, BackSide, _CurrentInputFile);

 

 // Remove from memory back side

 ImgDelete(BackSide);

 

 // Display measured QC flags (the first 17 measures)

 ApplicationLog('QC Result for file: ' + _CurrentInputFile);

 

 for i:=0 to 16 do

  begin

 

   // Get the measure

   measure:=ImgQualityControlGetMeasure(qcSession,i,0);

 

   // Get the measure name

   measureName:=ImgQualityControlGetMeasureName(qcSession,i,0);

 

   // Display the measure and the name

   ApplicationLog(MeasureName+' '+IntToStr(Measure));

 

  end;

 

 // Finalize the quality control session

 ImgQualityControlFinalize(qcSession);

end;