Checkmark confidence and verification

  • 266 Views
  • Last Post 21 September 2018
  • Topic Is Solved
aparschalk posted this 30 August 2018

Hi all!

We use Abbyy Flexicapture 12 to evaluate multiple choice exam forms. The checkmark recognition works nicely, but way too many fields are sent to field verification even though most of them are recognized correctly. This adds a lot of manual correction work.

Is there a way to lower the recognition confidence threshold from which checkmarks are flagged as suspicious?

Best,

Andreas

Ekaterina posted this 21 September 2018

Hello,

You can not exclude the checkmarks from the verification based on their confidence level (it is not accessible by the FlexiCapture script object model), but you may use custom recognition scripts and there you may set the property "IsSuspicious" for the checkmark to "true" or "false" based on the script logic.

Here is an example of how this script can be written:

-------------------------------------------------------------

int threshold = 50;

 

IPictureObjectsInfo PictureObjectsInfo = FieldRegion.Picture.AnalyzePageObjects(null);

if (PictureObjectsInfo.BlacknessPercentage > threshold)

{

Result.Value = true;

Result.IsSuspicious = false;

}

 

else if (PictureObjectsInfo.BlacknessPercentage > threshold - 10)

{

Result.Value = true;

Result.IsSuspicious = true;

}

else if (PictureObjectsInfo.BlacknessPercentage > threshold - 20)

{

Result.Value = false;

Result.IsSuspicious = true;

}

else

{

Result.Value = false;

Result.IsSuspicious = false;

}

Close