Identifying recognition problems
Contents
[
Hide
]
Non-fatal recognition errors are stored as a list of strings in the warnings
property of the recognition result.
# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Recognize the image
result = api.recognize(input)
# Output warnings
warnings = result[0].warnings
for warning in warnings:
print(warning)