Skip to content

aspose-ocr-cloud/aspose-ocr-cloud-java

master
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?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Features:

  • 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.

Examples

import com.aspose.ocr.api.*;

private static void setUpConfig() throws Exception {
        Configuration.setAPP_SID("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
        Configuration.setAPI_KEY("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    }

public String RecognizeFromUrl(String url) {
    String urlToFile = "https://upload.wikimedia.org/wikipedia/commons/2/2f/Book_of_Abraham_FirstPage.png";
    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;
}

Quickstart

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:

Structure

This project includes:

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-ocr-cloud-java</artifactId>
    <version>21.6.0</version>
    <scope>compile</scope>
</dependency>
<repositories>
   <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>http://repository.aspose.cloud/repo</url>
    </repository>
</repositories>            

Dependencies

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages