Install-Package Aspose.Ocr.Cpp-GPU -Version 21.7.0
dotnet add package Aspose.Ocr.Cpp-GPU --version 21.7.0
<PackageReference Include="Aspose.Ocr.Cpp-GPU" Version="21.7.0" />
paket add Aspose.Ocr.Cpp-GPU --version 21.7.0
#r "nuget: Aspose.Ocr.Cpp-GPU, 21.7.0"
// Install Aspose.Ocr.Cpp-GPU as a Cake Addin #addin nuget:?package=Aspose.Ocr.Cpp-GPU&version=21.7.0 // Install Aspose.Ocr.Cpp-GPU as a Cake Tool #tool nuget:?package=Aspose.Ocr.Cpp-GPU&version=21.7.0
C++ API to Perform OCR via GPU
It is an OCR API that enhances your C++ apps to perform image recognition using
Image OCR API Features
- Recognize characters from images.
- Calculate the skew angle of images.
- Currently, it supports the English language.
- Auto-align image and autodetect text areas.
- Get a single line and recognize it.
Read Image Formats for OCR
Raster Formats: JPEG, BMP ( 32bit and 16bit images are not supported), PNG
Supported Charset for Recognition
Aspose OCR library requires
onnxruntime.dll in the system path.
Get Started with Aspose.OCR for C++
Are you ready to give Aspose.OCR for C++ a try? Simply execute
Install-Package Aspose.Ocr.Cpp-GPU from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.OCR for C++ and want to upgrade the version, please execute
Update-Package Aspose.Ocr.Cpp-GPU to get the latest version.
Execute the following code snippet to see how Aspose.OCR API performs with your own samples or please visit the GitHub Repository for other common usage scenarios.
Perform OCR on PNG Image via C++ Code
// For complete examples and data files, please go to https://github.com/aspose-ocr/Aspose.OCR-for-C std::string image_path = "../Data/Source/sample.png"; const wchar_t* result = aspose::ocr::recognize_page(image_path.c_str()); std::wcout << result << L'\n';
Evaluation Version Limitation
The evaluation version of Aspose.OCR for C++ limits the number of characters extracted from an image to 300.
- Microsoft.ML.OnnxRuntime.Gpu (= 1.7.1)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.