Sending image for dewarping
Contents
[
Hide
]
Posting an image to the Aspose.OCR Cloud endpoint https://api.aspose.cloud/v5.0/ocr/dewarpimage
allows you to fetch a dewarped image that can be handled by other processing filters or recognized. To authorize the request, pass the access token in Authorization header (Bearer authentication).
The image is provided in a value of image
property as a Base64 encoded string.
Base64 encoded image can be very long, especially when recognizing scans and high resolution photos. As a result, you may encounter an error when calling recognition via cURL in a shell command. Use the
getconf ARG_MAX
command to check the maximum length of the command arguments (in bytes).
Return value
If successful, the endpoint returns a string with a unique identifier (GUID) of the dewarping request in the queue.
Otherwise, it returns a HTTP status code corresponding to the error.
What’s next
Dewarping will take a few seconds, depending on the image size and the current Aspose.Cloud load. See the article Fetching dewarped image for information on how to get back the dewarped image.