Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

Confidence Reporting: OCR Plus

Show in webframe

The OCR Plus engine can provide confidence information for the correctness of the recognized text in two different ways:

The output-marking feature is supported by most of the output converters. Marking low confidence recognition with color requires the selection of an output format (e.g. MS Word) that supports colored text.

For more information on these converters, see the Output converter formatting properties topic.

A possible output for the marking feature might be as follows:

"We would like to ask you some questions, ta*king around 15 minutes"

The text extract above was generated using the output-marking feature, in which the asterisk ('*') character was set to mark the suspiciously recognized characters in the output.

Structured recognized output can be produced though one of the two special output converters (e.g. "2G Type 3"). Even more information can be retrieved directly into application memory by a call to L_DocGetRecognizedCharacters, just after calling L_DocRecognize. The L_DocGetRecognizedCharacters call provides the most detailed information about the recognized data. It results in a 36-byte long RECOGCHARS structure for each recognized character. Whereas the 2G Type output formats provide 2nd guesses for each character, the RECOGCHARS structure provides three.

For some applications, it may be important to know the reliability of the recognized text generated by the engine. These applications may require having additional confidence information for the recognized characters and/or words.

There are two fields in the RECOGCHARS structure, which provide character recognition confidence information: nConfidence and nSpaceErr.

Applications that examine the character confidence information can use a threshold value, above which the character value is treated as a suspicious result. A value of 64 is recommended for this purpose. A value less than 64 will indicate that the character was recognized with high confidence. A value of 64 or greater marks that code is suspicious.

Note: The value 64 is also used internally in the same manner, when the output-marking feature for suspicious characters in the output text is enabled.

NOTE: The confidence reporting system works best when all three recognition modules are used in the voting scheme (RECOGMODULE_OMNIFONT_PLUS3W), but this is not the default value. If other machine print recognition modules are used (RECOGMODULE_OMNIFONT_PLUS2W, RECOGMODULE_MTEXT_OMNIFONT, etc) then confidence information is still available, but the ability of the system to properly report confidence will be reduced. This will result in a higher level of false negative and false positive reporting of suspicious recognition results.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.