Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time

Aspose OCR Cloud SDK for Java

Aspose OCR Cloud Java SDK is a simple OCR technology, which you can use in your application to convert image to text.

Aspose.OCR Cloud is a simple SDK used to add text recognition to your app with merely a few lines of code.

In detail, it's a set of SDKs for optical character recognition and document scanning in our Cloud. It supports reading and recognizing text from most commonly used raster image formats. Just pass a specific image to the Aspose.OCR Cloud API, and it will return a response with recognized text.

It is easy to get started with Aspose.OCR Cloud, and there is nothing to install. Create an account at Aspose Cloud and get your application information, then you are ready to use SDKs

Release 21.6:

22 Language support: English, German, French, Italian, Spanish, Portuguese, Polish, Slovene, Slovak , Netherlands, Lithuania, Latvian, Danish , Norwegian, Finnish, Serbian, Croatian, Czech, Swedish, Estonian, Romanian, Chinese

New feature:

  • Spell Correction.
  • Receipt Recognition.
  • Multipage PDF as input format.
  • Tables OCR: API for table image recognition. Supported outputs: Formatted TXT, Excel, CSV.
  • Option to select or disable the Document Structure Recognition algorithm.


  • Automatic skew correction
  • Automatic and manual document layout detection
  • Advanced automated image pre-processing
  • Extract and recognize text from images via OCR
  • Supports multiple international languages
  • High speed with no hardware resources

How to use the SDK?

Our API is completely independent of your operating system, database system, or development language. You can 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, we have provided and support SDKs in many development languages to make it easier to integrate with us.


import com.aspose.ocr.api.*;

private static void setUpConfig() throws Exception {

public String RecognizeFromUrl(String url) {
    String urlToFile = "";
    OCRResponse ocrResponse = RecognizeFromUrl(urlToFile, Language.English);
    return ocrResponse.text;

static String RecognizeFromContent(File f) {
    File f = new File(Configuration.getTestSrcDir(), "de_1.jpg");
    OCRResponse ocrResponse = RecognizeFromContent(f, Language.German);
    return ocrResp.text;


Make your solution using SDK, follow these steps:

1. Get API keys if you haven't

Make a personal account on Aspose Cloud Dashboard and click Get Keys. These keys are useful for all Aspose Cloud products. If you have any trouble, look at this detailed manual.

2. Run Demo

  • Checkout the SDK or get from Maven
  • Set Your AppSid & AppKey
  • Run Java console Demo or UnitTests

SDK Detailes:


This project includes:

Maven users

Add this dependency to your project's POM:

        <name>Aspose Java API</name>


See build.gradle

Aspose.OCR Cloud SDKs in Popular Languages

.NET Java Python Android NodeJS
GitHub GitHub GitHub GitHub GitHub
NuGet Maven PIP Maven NPM

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial


Aspose OCR Cloud Java SDK is a simple OCR technology, which you can use in your application to convert image to text.







No packages published

Contributors 4