Check for Rejection Character
If the recognition engine's confidence in the character result is less than the Reader.MinimumCharacterConfidence, then the character result's text will be set to the rejection character. The confidence of the character result will also be set to 0.
To determine if any of the characters in a text line were rejected, check that the confidence of the character result is zero.
| C# Example | Copy Code |
|---|---|
|
… CharacterResult charResult; bool containsRejections = false; for (int characterIndex = 0; characterIndex < textLineResult.NumberCharacters; characterIndex++) { charResult = textLineResult.Character( characterIndex ); // check for a confidence value of 0, because the confidence will be zero only if the character is rejected. if (0 == charResult.Confidence) { containsRejections = true; break; } } ... | |