Aspose.OCR
24.5.0
See the version list below for details.
dotnet add package Aspose.OCR --version 24.5.0
NuGet\Install-Package Aspose.OCR -Version 24.5.0
<PackageReference Include="Aspose.OCR" Version="24.5.0" />
paket add Aspose.OCR --version 24.5.0
#r "nuget: Aspose.OCR, 24.5.0"
// Install Aspose.OCR as a Cake Addin #addin nuget:?package=Aspose.OCR&version=24.5.0 // Install Aspose.OCR as a Cake Tool #tool nuget:?package=Aspose.OCR&version=24.5.0
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.ML.OnnxRuntime (>= 1.16.0)
- System.Text.Encoding.CodePages (>= 7.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Aspose.OCR:
Package | Downloads |
---|---|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
NovaQual.DocumentConversionLib
This contains all the document conversions functionality e.g word to pdf, exce to pdf etc |
|
Manager_Financial
Manage account between friends |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.11.0 | 332 | 11/6/2024 |
24.10.0 | 3,805 | 10/21/2024 |
24.9.0 | 6,648 | 9/28/2024 |
24.8.1 | 10,658 | 8/24/2024 |
24.8.0 | 3,842 | 8/5/2024 |
24.7.0 | 8,666 | 7/17/2024 |
24.6.0 | 9,889 | 6/14/2024 |
24.5.0 | 6,550 | 5/29/2024 |
24.4.2 | 5,532 | 5/1/2024 |
24.4.1 | 6,921 | 4/23/2024 |
24.4.0 | 1,641 | 4/15/2024 |
24.3.1 | 9,098 | 3/21/2024 |
24.3.0 | 8,431 | 3/15/2024 |
24.2.0 | 13,880 | 2/27/2024 |
24.1.0 | 28,047 | 1/18/2024 |
23.12.1 | 22,976 | 12/21/2023 |
23.12.0 | 7,868 | 12/4/2023 |
23.10.1 | 36,022 | 10/24/2023 |
23.10.0 | 10,488 | 10/10/2023 |
23.9.0 | 28,503 | 9/14/2023 |
23.8.1 | 29,526 | 8/31/2023 |
23.7.1 | 25,732 | 7/25/2023 |
23.7.0 | 12,176 | 7/11/2023 |
23.6.0 | 41,894 | 6/20/2023 |
23.5.0 | 20,448 | 5/19/2023 |
23.4.0 | 19,883 | 4/25/2023 |
23.3.1 | 41,661 | 3/23/2023 |
23.2.1 | 53,283 | 2/27/2023 |
23.2.0 | 10,829 | 2/13/2023 |
23.1.0 | 46,598 | 1/11/2023 |
22.12.0 | 25,830 | 12/14/2022 |
22.11.1 | 11,285 | 11/30/2022 |
22.11.0 | 21,651 | 11/14/2022 |
22.10.0 | 8,722 | 10/31/2022 |
22.9.0 | 32,237 | 9/28/2022 |
22.8.0 | 40,583 | 8/26/2022 |
22.7.0 | 20,142 | 7/22/2022 |
22.6.0 | 12,761 | 7/1/2022 |
22.5.0 | 32,290 | 5/22/2022 |
22.4.0 | 23,296 | 4/20/2022 |
22.3.0 | 26,106 | 3/28/2022 |
22.2.0 | 21,641 | 2/21/2022 |
22.1.0 | 28,007 | 1/27/2022 |
21.12.0 | 19,048 | 12/24/2021 |
21.11.0 | 29,919 | 11/18/2021 |
21.10.0 | 18,019 | 10/19/2021 |
21.9.0 | 36,075 | 9/21/2021 |
21.8.0 | 10,243 | 9/1/2021 |
21.7.0 | 52,641 | 7/29/2021 |
21.6.1 | 15,788 | 7/7/2021 |
21.6.0 | 22,791 | 6/30/2021 |
21.5.0 | 26,837 | 5/26/2021 |
21.4.0 | 65,172 | 4/29/2021 |
21.3.0 | 31,475 | 3/29/2021 |
21.2.0 | 18,982 | 2/25/2021 |
21.1.2 | 8,691 | 2/2/2021 |
20.12.1 | 6,930 | 2/2/2021 |
20.11.0 | 19,712 | 11/26/2020 |
20.10.0 | 15,816 | 10/27/2020 |
20.9.0 | 10,140 | 9/25/2020 |
20.8.0 | 12,758 | 8/27/2020 |
20.7.0 | 9,247 | 8/5/2020 |
20.6.1 | 6,584 | 8/5/2020 |
20.4.3 | 6,982 | 8/6/2020 |
19.9.3 | 10,220 | 2/5/2020 |
19.9.2 | 3,457 | 2/5/2020 |
19.9.1 | 11,477 | 11/20/2019 |
19.9.0 | 19,807 | 10/2/2019 |
19.8.1 | 5,397 | 9/2/2019 |
19.8.0 | 4,496 | 8/28/2019 |
17.11.0 | 21,291 | 11/15/2017 |
17.6.0 | 15,613 | 6/22/2017 |
17.3.0 | 4,138 | 3/17/2017 |
17.2.0 | 2,987 | 2/16/2017 |
17.1.0 | 3,742 | 1/14/2017 |
16.12.0 | 4,220 | 12/17/2016 |
16.11.0 | 2,938 | 11/11/2016 |
16.10.0 | 4,497 | 10/10/2016 |
3.7.0 | 2,975 | 9/2/2016 |
3.6.0 | 8,471 | 6/15/2016 |
3.5.0 | 3,459 | 4/12/2016 |
3.4.0 | 3,294 | 3/2/2016 |
3.3.0 | 3,864 | 2/1/2016 |
3.2.0 | 2,774 | 12/30/2015 |
3.1.0 | 3,478 | 11/23/2015 |
3.0.0 | 4,908 | 10/15/2015 |
2.9.0 | 3,275 | 9/7/2015 |
2.8.0 | 19,540 | 8/5/2015 |
2.7.0 | 7,409 | 6/26/2015 |
2.6.0 | 3,112 | 5/30/2015 |
2.5.0 | 3,185 | 4/30/2015 |
2.4.0 | 3,040 | 3/30/2015 |
2.3.0 | 3,473 | 2/26/2015 |
2.2.0 | 3,562 | 12/31/2014 |
2.1.0 | 2,849 | 10/21/2014 |
2.0.0 | 3,479 | 6/23/2014 |
1.9.0 | 2,921 | 4/3/2014 |
1.8.0 | 3,214 | 11/20/2013 |
1.6.0 | 14,049 | 7/22/2013 |
1.5.0 | 2,817 | 4/4/2013 |
1.4.0 | 2,617 | 12/27/2012 |
1.3.0 | 2,748 | 11/14/2012 |
1.2.0 | 2,726 | 10/19/2012 |
1.1.0.1 | 2,868 | 2/16/2012 |
1.1.0 | 2,723 | 1/24/2012 |