dotnet add package Aspose.OCR-Cloud --version 22.12.0
NuGet\Install-Package Aspose.OCR-Cloud -Version 22.12.0
<PackageReference Include="Aspose.OCR-Cloud" Version="22.12.0" />
paket add Aspose.OCR-Cloud --version 22.12.0
#r "nuget: Aspose.OCR-Cloud, 22.12.0"
// Install Aspose.OCR-Cloud as a Cake Addin #addin nuget:?package=Aspose.OCR-Cloud&version=22.12.0 // Install Aspose.OCR-Cloud as a Cake Tool #tool nuget:?package=Aspose.OCR-Cloud&version=22.12.0
.NET Cloud REST API for OCR
This cloud SDK helps you perform optical character recognition (OCR) on various image formats using C#, ASP.NET, or other .NET supported languages, in the cloud.
OCR Processing Features
- Recognize and extract text from images via OCR.
- Specify the area of the image from which you want to extract text.
- Perform OCR to recognize text from the whole or partial image.
- Fetch character and font information from raster images.
- Return the response in the JSON or XML format.
- Supports English text recognition.
Read OCR Formats
JPEG, PNG, GIF, BMP, TIFF
You do not need to install anything to get started with Aspose.OCR Cloud SDK for .NET. Just create an account at Aspose for Cloud and get your application information.
Install-Package Aspose.OCR-Cloud from the Package Manager Console in Visual Studio to fetch & reference Aspose.OCR assembly in your project. If you already have Aspose.OCR Cloud SDK for .NET and want to upgrade it, please execute
Update-Package Aspose.OCR-Cloud to get the latest version.
Please check the GitHub Repository for common usage scenarios.
Extract text from
PNG using C# Code
// For complete examples and data files, please go to https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-dotnet/ string imageFileName = "samples/lorem_ipsum.png"; string clientId = "" string clientSecret = "" RecognizeImageApi recognizeImageApi = new RecognizeImageApi(clientId, clientSecret); byte imageData = File.ReadAllBytes(imageFileName); var settings = new OCRSettingsRecognizeImage( language: Language.English, resultType: ResultType.Text, dsrMode: DsrMode.NoDsrNoFilter, makeContrastCorrection: false); var taskId = recognizeImageApi.PostRecognizeImage(new OCRRecognizeImageBody( image: imageData, settings: settings)); var result = recognizeImageApi.GetRecognizeImage(taskId); result.Results.ForEach(res => Console.WriteLine(Encoding.UTF8.GetString(res.Data)));
|.NET||net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows|
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
What was changed
This is the major release of Aspose.OCR Cloud which delivers significant new features, enhancements to existing features, performance improvements, and fixes. The list below contains the most important features that are supported in this release:
Image to speech conversion
Convert almost any picture or photo with readable characters into a natural human voice that can be played in the background or downloaded.
Advanced image binarization
A specialized neural network for converting images to black and white for better text recognition.
Automatic skew correction
Detect image skew angle and automatically correct the tilt.
Detect perspective distortions and automatically straighten the image.
Intelligently enhance image resolution without losing the content and quality.
Public API changes and backwards compatibility
This release is based on a completely new architecture (version 5.0) that is not backward compatible with previous (version 3.0) principles and workflows.
To maintain compatibility, please continue to use the previous version of the Aspose.OCR Cloud API.
Added public APIs:
See Aspose OCR Cloud 5.0 API Reference for the full list of new endpoints and request parameters.
Updated public APIs:
This is the first release based on the new (version 5.0) architecture. When updates, renames and improvements are introduced, they will be described in future Release Notes. Keep for updates.
Removed public APIs:
This is the first release based on the new (version 5.0) architecture. When some of the methods become deprecated, this will be announced in future Release Notes.