Browse our Products
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-ocr</artifactId>
<version>24.10.0</version>
</dependency>
compile(group: 'com.aspose', name: 'aspose-ocr', version: '24.10.0')
<dependency org="com.aspose" name="aspose-ocr" rev="24.10.0">
<artifact name="aspose-ocr" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-ocr" % "24.10.0"
Java OCR Library
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.OCR for Java offers a developer-friendly API for optical character recognition that can work an any platform that supports Java. With just a few lines of code, you can integrate OCR features into your desktop solutions and services that can work an any device. Extract text from scans, photos, and screenshots, convert scanned pages into searchable, indexable PDFs, and perform text search and comparison on images.
Features and benefits
- Global applications - supporting over 130 languages, the library allows you to recognize texts in Latin, Cyrillic and Asian scrips.
- Read everything - retrieve text from any file obtained through a scanner or camera, and process images directly from web links.
- Reliable results - achieve the highest recognition accuracy for all images, including those that are out-of-focus, rotated, distorted, and noisy.
- Batch processing - bulk-recognize all images from folders and archives; read multi-page PDF documents, TIFF images and DjVu files.
- Layout detection - identify and categorize content blocks in images to ensure the correct order of extracted text, regardless of layout.
- Suitable for any content - image preprocessing and customizable document structure detection enable text extraction from virtually any image, ranging from high-quality scans to street photos.
- Optimized - the library balances recognition speed, quality, and resource utilization for each specific use case.
- Easy to use - you only need a few lines of code to convert image to text, create a searchable PDF, save recognition results to document, and many more.
- Modular - keep your application lean and modular by selectively adding advanced features from our resource repository.
Supported file formats
- .PDF - Portable Document Format
- .JPG - JPEG, the most popular format for smartphone photos
- .PNG - Portable Network Graphics, 24-bit with transparency
- .TIFF - Tag Image File Format, commonly used for high quality scanning
- .GIF - Graphics Interchange Format, limited to 256 colors
- .BMP - Bitmap image file
- .WBMP - Monochrome graphics file optimized for mobile devices
Multi-page PDF documents and TIFF images are fully supported.
Supported platforms
- Microsoft Windows: Windows Desktop & Server (both x86 and x64)
- macOS
- Linux: Ubuntu, OpenSUSE, CentOS, and other Linux distributives
The system must support Java 2 Platform, Standard Edition (J2SE) 6.0 (1.6) or later.
Get Started
Aspose.OCR for Java API is hosted on the Maven repository or can be installed from the local package. For the detailed instructions, visit Installation article in online documentation.
Convert image to text
// Initialize Aspose.OCR recognition API
AsposeOCR api = new AsposeOCR();
RecognitionSettings recognitionSettings = new RecognitionSettings();
// Add image to the recognition batch
OcrInput source = new OcrInput(InputType.SingleImage);
source.add("image.png");
// Specify recognition language
RecognitionSettings recognitionSettings = new RecognitionSettings();
recognitionSettings.setLanguage(Language.ExtLatin);
// Extract text from image
ArrayList<RecognitionResult> results = api.Recognize(source, recognitionSettings);
System.out.println(result[0].recognition_text);
Read the Developer Reference for details on developing advanced applications with Aspose.OCR for Java.
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Version | Release Date |
---|---|
24.10.0 | October 9, 2024 |
24.8.0 | September 2, 2024 |
24.6.0 | August 27, 2024 |
24.4.1 | July 17, 2024 |
24.6.1 | July 9, 2024 |
24.4.0 | April 13, 2024 |
24.3.0 | March 19, 2024 |
24.2.0 | February 19, 2024 |
24.1.0 | January 26, 2024 |
23.11.0 | November 30, 2023 |
23.10.0 | October 19, 2023 |
23.7.1 | July 31, 2023 |
23.7.0 | July 11, 2023 |
23.6.1 | June 27, 2023 |
23.6.0 | June 14, 2023 |
23.5.0 | May 22, 2023 |
23.4.0 | April 26, 2023 |
23.3.0 | March 29, 2023 |
23.2.0 | February 27, 2023 |
23.1.1 | January 27, 2023 |
23.1.0 | January 16, 2023 |
22.12.0 | December 15, 2022 |
22.11.1 | November 30, 2022 |
22.11 | November 21, 2022 |
22.10 | November 2, 2022 |
22.9 | September 28, 2022 |
22.8 | August 29, 2022 |
22.7 | July 25, 2022 |
22.6 | June 30, 2022 |
22.5 | May 23, 2022 |
22.4 | April 21, 2022 |
22.3 | March 31, 2022 |
22.2 | February 21, 2022 |
22.1 | February 2, 2022 |
21.12 | December 26, 2021 |
21.11 | November 19, 2021 |
21.10 | October 21, 2021 |
21.9 | September 22, 2021 |
21.8 | September 3, 2021 |
21.7 | July 30, 2021 |
21.1 | July 25, 2021 |
21.2 | July 25, 2021 |
21.3 | July 25, 2021 |
21.4 | July 25, 2021 |
21.5 | July 25, 2021 |
21.6 | July 25, 2021 |
20.9 | May 13, 2021 |
20.11 | November 29, 2020 |
20.10 | October 23, 2020 |
20.8 | August 31, 2020 |
20.7 | July 31, 2020 |
20.5 | May 26, 2020 |
17.11 | December 26, 2017 |
17.6 | July 26, 2017 |
17.3 | April 5, 2017 |
17.2 | March 6, 2017 |
17.01 | February 1, 2017 |
16.12 | December 30, 2016 |
16.11 | November 29, 2016 |
16.10 | October 22, 2016 |
3.7.0 | October 4, 2016 |
3.6.0 | August 29, 2016 |
3.4.0 | April 20, 2016 |
3.3.0 | March 9, 2016 |
3.2.0 | February 11, 2016 |
Aspose Total Aspose OCR Aspose Java API ocr java library ocr java class Maven JPEG PNG GIF BMP TIFF TXT DOCX PDF Windows Linux Mac J2SE JSON optical character recognition OCR recognize text recognize image spell correction spell check skew correction image correction recognize pdf recognize tiff searchable pdf searchable docx multi lang ocr recognize multi image multi threading image detection text detection