Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.OCR for Python via .NET can return recognition results as XML - a universal data exchange and storage format. To get the results as XML, use get_xml()
method 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)
# Show JSON
json = results[0].get_xml()
print(json)
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.