Aspose.OCR 24.8.1
Optical character recognition (OCR) API for .NET
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Integrate optical character recognition (OCR) seamlessly into your .NET desktop applications, web sites, cloud services, and serverless Azure functions. With just a few lines of native C# code, you will effortlessly extract text from scans, photos, and screenshots. The library can also convert scanned pages into searchable and indexable PDFs, and find and compare text within images.
What is OCR?
OCR stands for Optical Character Recognition. This technology enables extracting machine-readable text from images, scanned documents, or other types of media that contain text. OCR processes the image or document, identifies characters, and converts them into text that can be edited, searched, or analyzed electronically. OCR is commonly used in various applications such as document management, data entry automation, text extraction from images, and accessibility tools for visually impaired individuals.
Key features
- Global applications - supporting over 130 languages, our library allows you to recognize texts in Latin, Cyrillic, Arabic, Hindi, Chinese and other 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.
- Tesseract alternative - Aspose.OCR excels in recognizing complex cases where Tesseract might struggle to achieve sufficient accuracy or even fail entirely.
Supported file formats
Aspose.OCR can work with virtually any file you can get from a scanner or camera:
- JPEG, PNG, BMP and GIF images
- Single-page and multi-page TIFF
- PDF documents
- DjVu files
You can also use Aspose.OCR to perform bulk recognition on images within folders and archives, as well as process images directly from URLs without the need to download them locally.
Recognition results are returned in the most popular file and data exchange formats that can be saved, imported to a database, or analyzed in real time:
- Plain text
- Searchable PDF
- Microsoft Office document
- HTML
- RTF
- ePUB
- Data exchange formats: JSON and XML
Easy to use
The library is very developer-friendly. 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.
- Create an instance of Aspose.OCR recognition engine:
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr(); - Add one or more images to the recognition batch:
Aspose.OCR.OcrInput source = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage); source.Add("source.png"); - Convert image to text:
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(source); - Output the recognized text:
Console.WriteLine(results[0].RecognitionText);
That's all! Copy and paste the full code to try it yourself:
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
Aspose.OCR.OcrInput source = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
source.Add("source.png");
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(source);
Console.WriteLine(results[0].RecognitionText);
You can also download the examples to try the advanced library capabilities or visit the product page for live code sample.
Licensing
You can start using Aspose.OCR library right after the installation. In trial mode (without providing a license) you can recognize texts in any supported languages and save recognition results in any of the supported formats with some restrictions:
- If the number of characters in a recognized image exceeds 300, only the first 300 characters are recognized.
- If the number of characters in a recognized image is less than 300, the first 60% of characters are recognized.
A temporary license removes all limitations of the trial version for 30 days. Use it to start building a fully functional OCR application and make the final decision to purchase Aspose.OCR later.
Learn more
Showing the top 20 packages that depend on Aspose.OCR.
| Packages | Downloads |
|---|---|
|
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework).
Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or insert pages; transform pages to image; print PDF documents and much more.
|
1 |
.NET Standard 2.0
- Microsoft.ML.OnnxRuntime (>= 1.18.0)
- System.Text.Encoding.CodePages (>= 7.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 26.9.1 | 1 | 2026/9/16 |
| 26.9.0 | 1 | 2026/9/16 |
| 26.7.1 | 1 | 2026/9/16 |
| 26.7.0 | 1 | 2026/9/16 |
| 26.6.1 | 1 | 2026/9/16 |
| 26.6.0 | 1 | 2026/9/16 |
| 26.5.2 | 1 | 2026/9/16 |
| 26.5.1 | 1 | 2026/9/16 |
| 26.5.0 | 1 | 2026/9/16 |
| 26.4.0 | 1 | 2026/9/16 |
| 26.3.0 | 1 | 2026/9/16 |
| 26.2.0 | 1 | 2026/9/16 |
| 26.1.0 | 1 | 2026/9/16 |
| 25.11.0 | 1 | 2026/9/16 |
| 25.9.1 | 1 | 2026/9/16 |
| 25.9.0 | 1 | 2026/9/16 |
| 25.8.0 | 1 | 2026/9/16 |
| 25.7.0 | 1 | 2026/9/16 |
| 25.6.0 | 1 | 2026/9/16 |
| 25.5.0 | 1 | 2026/9/16 |
| 25.4.0 | 1 | 2026/9/16 |
| 25.3.0 | 1 | 2026/9/16 |
| 25.2.0 | 1 | 2026/9/16 |
| 25.1.0 | 1 | 2026/9/16 |
| 24.12.0 | 1 | 2026/9/16 |
| 24.11.1 | 1 | 2026/9/16 |
| 24.11.0 | 1 | 2026/9/16 |
| 24.10.0 | 1 | 2026/9/16 |
| 24.9.0 | 1 | 2026/9/16 |
| 24.8.1 | 1 | 2026/9/16 |
| 24.8.0 | 1 | 2026/9/16 |
| 24.7.0 | 1 | 2026/9/16 |
| 24.6.0 | 1 | 2026/9/16 |
| 24.5.0 | 1 | 2026/9/16 |
| 24.4.2 | 1 | 2026/9/16 |
| 24.4.1 | 1 | 2026/9/16 |
| 24.4.0 | 1 | 2026/9/16 |
| 24.3.1 | 1 | 2026/9/16 |
| 24.3.0 | 1 | 2026/9/16 |
| 24.2.0 | 1 | 2026/9/16 |
| 24.1.0 | 1 | 2026/9/16 |
| 23.12.1 | 1 | 2026/9/16 |
| 23.12.0 | 1 | 2026/9/16 |
| 23.10.1 | 1 | 2026/9/16 |
| 23.10.0 | 1 | 2026/9/16 |
| 23.9.0 | 1 | 2026/9/16 |
| 23.8.1 | 1 | 2026/9/16 |
| 23.7.1 | 1 | 2026/9/16 |
| 23.7.0 | 1 | 2026/9/16 |
| 23.6.0 | 1 | 2026/9/16 |
| 23.5.0 | 1 | 2026/9/13 |
| 23.4.0 | 1 | 2026/9/16 |
| 23.3.1 | 1 | 2026/9/16 |
| 23.2.1 | 1 | 2026/9/16 |
| 23.2.0 | 1 | 2026/9/16 |
| 23.1.0 | 1 | 2026/9/16 |
| 22.12.0 | 1 | 2026/9/16 |
| 22.11.1 | 1 | 2026/9/16 |
| 22.11.0 | 1 | 2026/9/16 |
| 22.10.0 | 1 | 2026/9/16 |
| 22.9.0 | 1 | 2026/9/16 |
| 22.8.0 | 1 | 2026/9/16 |
| 22.7.0 | 1 | 2026/9/16 |
| 22.6.0 | 1 | 2026/9/16 |
| 22.5.0 | 1 | 2026/9/16 |
| 22.4.0 | 1 | 2026/9/16 |
| 22.3.0 | 1 | 2026/9/16 |
| 22.2.0 | 1 | 2026/9/16 |
| 22.1.0 | 1 | 2026/9/16 |
| 21.12.0 | 1 | 2026/9/16 |
| 21.11.0 | 1 | 2026/9/16 |
| 21.10.0 | 1 | 2026/9/16 |
| 21.9.0 | 1 | 2026/9/16 |
| 21.8.0 | 1 | 2026/9/16 |
| 21.7.0 | 1 | 2026/9/16 |
| 21.6.1 | 1 | 2026/9/16 |
| 21.6.0 | 1 | 2026/9/16 |
| 21.5.0 | 1 | 2026/9/16 |
| 21.4.0 | 1 | 2026/9/16 |
| 21.3.0 | 1 | 2026/9/16 |
| 21.2.0 | 1 | 2026/9/16 |
| 21.1.2 | 1 | 2026/9/16 |
| 20.12.1 | 1 | 2026/9/16 |
| 20.11.0 | 1 | 2026/9/16 |
| 20.10.0 | 1 | 2026/9/16 |
| 20.9.0 | 1 | 2026/9/16 |
| 20.8.0 | 1 | 2026/9/16 |
| 20.7.0 | 1 | 2026/9/16 |
| 20.6.1 | 1 | 2026/9/16 |
| 20.4.3 | 1 | 2026/9/16 |
| 19.9.3 | 1 | 2026/9/13 |
| 19.9.2 | 1 | 2026/9/16 |
| 19.9.1 | 1 | 2026/9/13 |
| 19.9.0 | 1 | 2026/9/16 |
| 19.8.1 | 1 | 2026/9/16 |
| 19.8.0 | 1 | 2026/9/16 |
| 17.11.0 | 1 | 2026/9/16 |
| 17.6.0 | 1 | 2026/9/16 |
| 17.3.0 | 1 | 2026/9/16 |
| 17.2.0 | 1 | 2026/9/16 |
| 17.1.0 | 1 | 2026/9/16 |
| 16.12.0 | 1 | 2026/9/16 |
| 16.11.0 | 1 | 2026/9/16 |
| 16.10.0 | 1 | 2026/9/16 |
| 3.7.0 | 1 | 2026/9/16 |
| 3.6.0 | 1 | 2026/9/16 |
| 3.5.0 | 1 | 2026/9/16 |
| 3.4.0 | 1 | 2026/9/16 |
| 3.3.0 | 0 | 2016/2/1 |
| 3.2.0 | 1 | 2026/9/16 |
| 3.1.0 | 1 | 2026/9/16 |
| 3.0.0 | 0 | 2015/10/15 |
| 2.9.0 | 1 | 2026/9/16 |
| 2.8.0 | 1 | 2026/9/16 |
| 2.7.0 | 1 | 2026/9/16 |
| 2.6.0 | 1 | 2026/9/16 |
| 2.5.0 | 0 | 2015/4/30 |
| 2.4.0 | 1 | 2026/9/16 |
| 2.3.0 | 1 | 2026/9/16 |
| 2.2.0 | 1 | 2026/9/16 |
| 2.1.0 | 0 | 2014/10/21 |
| 2.0.0 | 0 | 2014/6/23 |
| 1.9.0 | 1 | 2026/9/16 |
| 1.8.0 | 1 | 2026/9/16 |
| 1.6.0 | 1 | 2026/9/16 |
| 1.5.0 | 1 | 2026/9/16 |
| 1.4.0 | 0 | 2012/12/27 |
| 1.3.0 | 1 | 2026/9/16 |
| 1.2.0 | 1 | 2026/9/16 |
| 1.1.0.1 | 1 | 2026/9/16 |
| 1.1.0 | 1 | 2026/9/16 |
