![]() |
VOOZH | about |
dotnet add package Aspose.Ocr.Cpp --version 25.10.0
NuGet\Install-Package Aspose.Ocr.Cpp -Version 25.10.0
<PackageReference Include="Aspose.Ocr.Cpp" Version="25.10.0" />
<PackageVersion Include="Aspose.Ocr.Cpp" Version="25.10.0" />Directory.Packages.props
<PackageReference Include="Aspose.Ocr.Cpp" />Project file
paket add Aspose.Ocr.Cpp --version 25.10.0
#r "nuget: Aspose.Ocr.Cpp, 25.10.0"
#:package Aspose.Ocr.Cpp@25.10.0
#addin nuget:?package=Aspose.Ocr.Cpp&version=25.10.0Install as a Cake Addin
#tool nuget:?package=Aspose.Ocr.Cpp&version=25.10.0Install as a Cake Tool
👁 Version 25.10.0
![Downloads]Windows-CPU / Windows-GPU / Linux-CPU / Linux-GPU
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
This package can be used to develop applications for different operating systems and platforms. You can build both 32-bit and 64-bit software.
Please note: Aspose.OCR for C++ requires ONNX Runtime 1.11.0 or later (CPU / GPU).
Aspose.OCR for C++ can extract text from photos, scans, PDF documents and other graphical files. It allows you to add OCR functionality to a desktop or web application in less than 10 lines of code, without having to delve into complex mathematical operations, neural networks, and other technical details.
Aspose.OCR can recognize a large number of languages and all popular writing scripts, including texts with mixed languages.
Aspose.OCR for C++ can recognize just about any file that you get from a scanner or camera, or download from the Internet:
Recognition results are returned in the most popular document and data exchange formats:
You can get familiar with Aspose.OCR for C++ by creating a minimal console application for extracting text from an image.
source.png.AsposeOCRInput structure:
string file = current_dir + "/source.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content{ source };
RecognitionSettings settings;
settings.language_alphabet = language::eng;
auto result = asposeocr_recognize(content.data(), content.size(), settings);
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::cout << std::wstring(buffer) << std::endl;
asposeocr_free_result(result);
Full code:
// Provide the image
string file = current_dir + "/source.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content{ source };
// Set recognition language
RecognitionSettings settings;
settings.language_alphabet = language::eng;
// Extract text from the image
auto result = asposeocr_recognize(content.data(), content.size(), settings);
// Output the recognized text
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::cout << std::wstring(buffer) << std::endl;
// Release the resources
asposeocr_free_result(result);
Run the program. You will see the extracted text in the console output. If the text is too large, the result may be cut off due to trial restrictions. You can get a temporary license to remove all limitations of the trial version for 30 days.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native native is compatible. |
This package has no dependencies.
Showing the top 1 NuGet packages that depend on Aspose.Ocr.Cpp:
| Package | Downloads |
|---|---|
|
Aspose.Total.Cpp
Aspose.Total for C++ is a complete package of C++ libraries specifically designed to create, manipulate and convert popular file formats from Microsoft Office and PDF without requiring Office or Adobe Automation. C++ API package also includes a specialized library to generate and recognize barcode labels from images with advanced features to customize the barcode generation and recognition process. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 25.10.0 | 3,357 | 10/3/2025 |
| 25.2.0 | 3,609 | 2/4/2025 |
| 24.9.0 | 4,049 | 9/3/2024 |
| 24.5.0 | 4,693 | 5/31/2024 |
| 24.4.0 | 4,951 | 4/30/2024 |
| 24.3.0 | 6,783 | 3/31/2024 |
| 24.2.0 | 6,960 | 2/29/2024 |
| 24.1.0 | 6,922 | 1/30/2024 |
| 23.12.0 | 7,833 | 12/28/2023 |
| 23.11.0 | 8,027 | 11/30/2023 |
| 23.10.0 | 8,491 | 10/30/2023 |
| 23.9.0 | 8,652 | 9/22/2023 |
| 23.8.0 | 9,344 | 8/31/2023 |
| 23.6.0 | 13,964 | 7/1/2023 |
| 23.4.0 | 11,321 | 4/28/2023 |
| 23.3.0 | 8,841 | 3/31/2023 |
| 23.2.0 | 9,201 | 2/8/2023 |
| 22.12.0 | 12,792 | 12/2/2022 |
| 22.11.0 | 9,183 | 11/21/2022 |
| 22.10.0 | 9,255 | 10/18/2022 |