Optical Characters Recognition over Images using Java Cloud SDK

Aspose.OCR Cloud Family

Aspose.OCR Cloud provides features to perform Optical Characters Recognition and document scanning in the Cloud. No software download or installation required. It supports reading and recognition of text from most commonly used raster image formats (BMP, JPG, GIF, PNG, TIFF). The recognition operation can be performed with fewer code lines where you need to pass a specific image to the Aspose.OCR Cloud API, and it will return a response with recognized text. The API is capable of recognizing English, French, or Spanish text and response in XML or JSON formats.

During the recognition process, you can read characters as well as the associated font information. You can perform OCR on the whole image or provide X and Y coordinates to perform it on a specific portion of the raster image. It is also capable to perform an automatic skew correction, plus an automatic and manual document layout detection operations at a high speed, as it has no hardware resources dependency.

Platform Independent

The Cloud API is completely independent of your operating system, database system, or development language and you may use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone, and time-consuming. Therefore, in order to facilitate our customers using Java language, a language-specific Aspose.OCR Cloud Java SDK is published. When using SDK, it takes care of a lot of low-level details while making requests and handling responses and enables you to focus on writing code specific to your particular project needs.

Recognize Text from URL Image

The Cloud OCR API provides an option to directly perform text recognition operation on image files available over web URL. You do not need to exclusively upload it to particular cloud storage.

Java Code snippet

Recognize Text from Image in Storage

Java Code snippet

cURL command

curl "https://api.aspose.cloud/v3.0/ocr/MyImage.png/recognize?language=1" -X GET -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"

Request URL


Response Body

  "text": "MOORE STEPHENS",
  "code": 200

Useful Links