Aspose.OCR Cloud 24.6.0 - Release Notes

What was changed

KeySummaryCategory
n/aAdded a new result type that returns recognition result in JSON format.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR Cloud 24.6.0 that may affect the code of existing applications.

Added public APIs:

No changes.

Updated public APIs:

The following public APIs have been updated in this release:

JSON result type

Added JSON result type to image recognition, PDF recognition, receipt recognition, and table recognition.

When the recognition results are returned as JSON, the resulting file will contain the array of all content blocks found in the image and the recognized text found in each block:

  • The coordinates of the top left and bottom right corners of the content block.
  • The recognized text (plain text string).

Removed public APIs:

No changes.

Examples

The examples below illustrate the changes introduced in this release:

Get image recognition results in JSON format

Send image for recognition:

curl --request POST --location 'https://api.aspose.cloud/v5.0/ocr/RecognizeImageTrial' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--data-raw '{
  "image": "iVBORw0KGgoAAAANSUh...d1iEAAAAASUVORK5CYII=",
  "settings": {
    "language": "English",
    "resultType": "JSON"
  }
}'

Fetch the extracted text:

curl --request GET --location 'https://api.aspose.cloud/v5.0/ocr/RecognizeImageTrial?id=TTS01232-9d40-4f2d-8eda-f1fc0b12bce6' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \