Identifying the characters

Contents
[ ]

Aspose.OCR for Python via .NET can automatically build a list of characters found in an image and provide 4 less likely alternatives of each character (in descending order of probability). This list is provided in recognition_characters_list property of RecognitionResult object.

# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Recognize the image
results = api.recognize(input)
# Get list of characters
characterList = results[0].recognition_characters_list

The list of unique characters can later be used for identifying a whitelist to greatly improve the accuracy and performance of recognition.

Alternatives can be used to find out patterns in common recognition errors, such as misidentifying certain characters in a font used in an image, and to take corrective action, such as automatic substitution.