<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-ocr</artifactId>
<version>22.4</version>
</dependency>
copied!
compile(group: 'com.aspose', name: 'aspose-ocr', version: '22.4')
copied!
<dependency org="com.aspose" name="aspose-ocr" rev="22.4">
 <artifact name="aspose-ocr" ext="jar"/>
</dependency>
copied!
libraryDependencies += "com.aspose" % "aspose-ocr" % "22.4"
copied!

Java OCR Library

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.OCR for Java is a character and optical mark recognition API that allows developers to add OCR functionality in their applications. It provides a simple set of classes for controlling character recognition.

Convert Image to Text via Java

  • Read characters from images.
  • Support for JPG, PNG, GIF, BMP and TIFF image file formats for OCR.
  • Support for English, French, Spanish and Portuguese.
  • Read popular fonts including Arial, Times New Roman, Courier New, Verdana, Tahoma and Calibri.
  • Support for regular, bold and italic font styles.
  • Scan the whole image or any part of the image.
  • Scan rotated images.
  • Can apply different noise removal filters before image recognition.
  • Extract optical marked elements from Scanned images.
  • Support for various optical marked elements such as Check Box, Choice Box, Grid, Barcode & OCR.

Supported Characters

space!"#$%&'()
*+,-./0123
456789:;<=
>?@[\]_`{|
}~ABCDEFGH
IJKLMNOPQR
STUVWXYZab
cdefghijkl
mnopqrstuv
wxyzÂÀÁÃÄÆ
ÇÈÉÊËÌÍÎÏÑ
ÒÓÔÕÖÙÚÛÜ
ßàáâãäæçèé
êëìíîïñòóô
õöùúûüÿŒœŸ

Load Images for OCR

Raster Formats: JPEG, PNG, GIF, BMP, TIFF

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 6.0 (1.6) or above

Get Started

Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.OCR for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.OCR for Java from Maven Repository documentation page.

Extract Text from Specific Areas on Image

// create API instance
AsposeOCR api = new AsposeOCR();
// prepare rectangles with texts.
ArrayList rectArray = new ArrayList();
rectArray.add(new Rectangle(138, 352, 2033, 537));
rectArray.add(new Rectangle(147, 890, 2033, 1157));
String result = api.RecognizePage("template.png", rectArray);

System.out.println("Result with rect: " + result);

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

VersionRelease Date
22.4April 21, 2022
22.3March 31, 2022
22.2February 21, 2022
22.1February 2, 2022
21.12December 26, 2021
21.11November 19, 2021
21.10October 21, 2021
21.9September 22, 2021
21.8September 3, 2021
21.7July 30, 2021
21.1July 25, 2021
21.2July 25, 2021
21.3July 25, 2021
21.4July 25, 2021
21.5July 25, 2021
21.6July 25, 2021
20.9May 13, 2021
20.11November 29, 2020
20.10October 23, 2020
20.8August 31, 2020
20.7July 31, 2020
20.5May 26, 2020
17.11December 26, 2017
17.6July 26, 2017
17.3April 5, 2017
17.2March 6, 2017
17.01February 1, 2017
16.12December 30, 2016
16.11November 29, 2016
16.10October 22, 2016
3.7.0October 4, 2016
3.6.0August 29, 2016
3.4.0April 20, 2016
3.3.0March 9, 2016
3.2.0February 11, 2016