ImgQualityControlGetMeasure

Top  Previous  Next

Prototype

 

intValue:=ImgQualityControlGetMeasure(intHandle, intMeasure, intIndex)

 

Description

 

Get a measure computed by quality control checking.

 

Parameters

 

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

intMeasure: integer value representing the index of measure to retrieve. Allowed values are:

 

  1:Undersize Image Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  2:Folded Corners Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  3:Folded Edges Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  4:Framing Error Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  5:Document Skew Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  6:Oversize Image Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  7:PiggyBack Document Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  8:Image Too Light Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  9:Image Too Dark Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  10:Horizontal Streak Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  11:Below Compressed Size Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  12:Above Compressed Size Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  13:Spot Noise Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  14:Front Rear Dimension Mismatch Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  15:Carbon Strip Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  16:Out Of Focus Flag - 0=Not Measured, 1=Defect Present, 2=Defect Absent.

  100:Width of image in 1/100 of inch.

  101:Height of image in 1/100 of inch.

  102:Left Edge Overscan length in 1/100 of inch.

  103:Right Edge Overscan length in 1/100 of inch.

  104:Top Edge Overscan length in 1/100 of inch.

  105:Bottom Edge Overscan length in 1/100 of inch.

  106:Top Left Folded Corner X coordinate if any

  107:Top Left Folded Corner Y coordinate if any

  108:Top Right Folded Corner X coordinate if any

  109:Top Right Folded Corner Y coordinate if any

  110:BottomLeftFoldedCorner X coordinate if any

  111:BottomLeftFoldedCorner Y coordinate if any

  112:BottomRightFoldedCorner X coordinate if any

  113:BottomRightFoldedCorner Y coordinate if any

  114:Top Edge Folded Zone Count

  115:Top Edge Folded Zone Rect Left coordinate (requires usage of index parameter from 0 to Zone Count-1)

  116:Top Edge Folded Zone Rect Top coordinate (requires usage of index parameter from 0 to Zone Count-1)

  117:Top Edge Folded Zone Rect Right coordinate (requires usage of index parameter from 0 to Zone Count-1)

  118:Top Edge Folded Zone Rect Bottom coordinate (requires usage of index parameter from 0 to Zone Count-1)

  119:Bottom Edge Folded Zone Count

  120:Bottom Edge Folded Zone Rect Left coordinate (requires usage of index parameter from 0 to Zone Count-1)

  121:Bottom Edge Folded Zone Rect Top coordinate (requires usage of index parameter from 0 to Zone Count-1)

  122:Bottom Edge Folded Zone Rect Right coordinate (requires usage of index parameter from 0 to Zone Count-1)

  123:Bottom Edge Folded Zone Rect Bottom coordinate (requires usage of index parameter from 0 to Zone Count-1)

  124:Right Edge Folded Zone.Count

  125:Right Edge Folded Zone Rect Left coordinate (requires usage of index parameter from 0 to Zone Count-1)

  126:Right Edge Folded Zone Rect Top coordinate (requires usage of index parameter from 0 to Zone Count-1)

  127:Right Edge Folded Zone Rect Right coordinate (requires usage of index parameter from 0 to Zone Count-1)

  128:Right Edge Folded Zone Rect Bottom coordinate (requires usage of index parameter from 0 to Zone Count-1)

  129:Left Edge Folded Zone Count

  130:Left Edge Folded Zone Rect Left coordinate (requires usage of index parameter from 0 to Zone Count-1)

  131:Left Edge Folded Zone Rect Top coordinate (requires usage of index parameter from 0 to Zone Count-1)

  132:Left Edge Folded Zone Rect Right coordinate (requires usage of index parameter from 0 to Zone Count-1)

  133:Left Edge Folded Zone Rect Bottom coordinate (requires usage of index parameter from 0 to Zone Count-1)

  134:SkewAngle in 1/10 of degree.

  135:Percent Brigthness in 1/10 of percent.

  136:Percent Contrast  in 1/10 of percent.

  137:Percent Black Pixels  in 1/10 of percent.

  138:Average Spot Noise Count

  139:Image Focus Score

 

intIndex: integer valure representing the index of measure to find, if the case the measure is an array of values top, right, bottom, left folded zones rects.

 

Returned value

 

Integer value representing the measured value.

 

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;