Aspose.OCR Cloud 23.5.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
n/aConversion of DjVu files to searchable PDF documents.New feature
n/aUpdated image processing endpoints:Enhancement
n/aUpdated text-to-speech conversion endpoints.Enhancement

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been introduced in this release:

https://api.aspose.cloud/v5.0/ocr/djvu2pdf

Convert DjVu file to a searchable PDF document.

MethodAction
POSTSend DjVu file for conversion.
GETFetch the conversion result (searchable PDF).
DELETERemove the conversion task from the queue.

Updated public APIs:

The following public APIs have been updated in this release:

https://api.aspose.cloud/v5.0/ocr/deskewimage

Automatically straighten a skewed image.

MethodAction
POSTSubmit an image for processing.
GETFetch the processing result.
DELETERemove the processing task from the queue.

https://api.aspose.cloud/v5.0/ocr/binarizeimage

Automatically convert an image to black and white.

MethodAction
POSTSubmit an image for processing.
GETFetch the processing result.
DELETERemove the processing task from the queue.

https://api.aspose.cloud/v5.0/ocr/dewarpimage

Automatically straighten curved text and remove geometric distortions from an image.

MethodAction
POSTSubmit an image for processing.
GETFetch the processing result.
DELETERemove the processing task from the queue.

https://api.aspose.cloud/v5.0/ocr/upscaleimage

Increase an image resolution and enhance the contrast of text details.

MethodAction
POSTSubmit an image for processing.
GETFetch the processing result.
DELETERemove the processing task from the queue.

https://api.aspose.cloud/v5.0/ocr/converttexttospeech

Convert the recognition results into a natural human voice.

MethodAction
POSTSubmit a text for conversion.
GETFetch the audio.
DELETERemove the text-to-speech conversion task from the queue.

Removed public APIs:

No changes.

Deprecated APIs

The following public APIs have been marked as deprecated and will be removed in the next release:

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/PostSkewCorrectionFile

Replaced with [POST] https://api.aspose.cloud/v5.0/ocr/deskewimage endpoint.

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/PostBinarizationFile

Replaced with [POST] https://api.aspose.cloud/v5.0/ocr/binarizeimage endpoint.

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/PostDewarpingFile

Replaced with [POST] https://api.aspose.cloud/v5.0/ocr/dewarpimage endpoint.

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/PostUpsamplingImageFile

Replaced with [POST] https://api.aspose.cloud/v5.0/ocr/upscaleimage endpoint.

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/GetResultTask

Replaced with the following endpoints, depending on the image processing method:

  • [GET] https://api.aspose.cloud/v5.0/ocr/deskewimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/binarizeimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/dewarpimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/upscaleimage

https://api.aspose.cloud/v5.0/ocr/ImageProcessing/GetResultFile

Replaced with the following endpoints, depending on the image processing method:

  • [GET] https://api.aspose.cloud/v5.0/ocr/deskewimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/binarizeimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/dewarpimage
  • [GET] https://api.aspose.cloud/v5.0/ocr/upscaleimage

https://api.aspose.cloud/v5.0/ocr/TextToSpeech/PostTextToSpeech

Replaced with [POST] https://api.aspose.cloud/v5.0/ocr/converttexttospeech endpoint.

https://api.aspose.cloud/v5.0/ocr/TextToSpeech/GetTextToSpeechResult

Replaced with [GET] https://api.aspose.cloud/v5.0/ocr/converttexttospeech endpoint.

https://api.aspose.cloud/v5.0/ocr/TextToSpeech/GetTextToSpeechResultFile

Replaced with [GET] https://api.aspose.cloud/v5.0/ocr/converttexttospeech endpoint.

Examples

The examples below illustrate the changes introduced in this release:

Automatically correct geometric image distortions

Send image for dewarping:

curl --location --request POST 'https://api.aspose.cloud/v5.0/ocr/dewarpimage' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...HaRYOxBcCRCPLnrFCVXpw7UA' \
--data-raw '{
  "image": "iVBORw0KGgoAAAANSUh...d1iEAAAAASUVORK5CYII=",
}'

Fetch dewarped image:

curl --location --request GET 'https://api.aspose.cloud/v5.0/ocr/dewarpimage?id=c4b60313-4f78-45f8-b708-069eb98dc22e' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...HaRYOxBcCRCPLnrFCVXpw7UA' \

Convert text to speech

Send text for conversion:

curl --location --request POST 'https://api.aspose.cloud/v5.0/ocr/converttexttospeech' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...DpisWjfwe5RsfNCQ9Uh7Ig' \
--data '{
	"text": "Read this text aloud",
	"settings": {
		"language": "English",
		"resultType": "Wav"
	}
}'

Fetch audio:

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

Convert DjVu to searchable PDF

Send DjVu file for conversion:

curl --location --request POST 'https://api.aspose.cloud/v5.0/ocr/djvu2pdf' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...HaRYOxBcCRCPLnrFCVXpw7UA' \
--data-raw '{
  "image": "iVBORw0KGgoAAAANSUh...d1iEAAAAASUVORK5CYII="
}'

Fetch PDF converted from DjVu:

curl --location --request GET 'https://api.aspose.cloud/v5.0/ocr/djvu2pdf?id=c4b60313-4f78-45f8-b708-069eb98dc22e' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...HaRYOxBcCRCPLnrFCVXpw7UA' \