Getting recognition results as text

Contents
[ ]

Recognition results in plain text with line breaks can be obtained from the recognition_text 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
result = api.recognize(input)
# Print recognition result
print(result[0].recognition_text)