This .NET library is intended to simplify the development of image recognition solutions with ABBYY Cloud OCR SDK API. This repo contains the client library and the sample enabling simple access to high-quality recognition technologies. Using this library, you can supplement your C# code with ready-to-use solutions of images recognition with following export to the most popular text formats, such as searchable PDF, TXT, DOCX.
For more information about the product visit ABBYY Cloud OCR SDK website.
To use the library in your project for image processing, do the following:
The sample demonstrates how to process image with the specified parameters and export the result using this client library. Start your developement with the following steps.
Provide your authentication info and the HTTP server URL address, used for API calls (see Data processing location for details)
var authInfo = new AuthInfo
{
Host = "https://<PROCESSING_LOCATION_ID>.ocrsdk.com",
ApplicationId = ApplicationId,
Password = Password,
};
Create the main OcrClient object:
var client = new OcrClient(authInfo))
Set the processing and result options (you can find all the settings here:
var imageParams = new ImageProcessingParams { ExportFormats = new[] { ExportFormat.Docx, ExportFormat.Txt, }, Language = "English,French", };
Open file as stream:
var fileStream = new FileStream(FilePath, FileMode.Open))
Pass the parameters to a new task. Set waitTaskFinished
flag to true to wait for the results in current method. If waitTaskFinished
is false, the task will be processed asynchronous.
var taskInfo = await client.ProcessImageAsync( imageParams, fileStream, Path.GetFileName(FilePath), waitTaskFinished: true);
Display the URL addresses of the result documents:
foreach (var resultUrl in taskInfo.ResultUrls) { Console.WriteLine(resultUrl); }
Investigate the whole sample in Sample folder.
You can export recognized text to the following formats:
ABBYY Cloud OCR SDK detects on the image the following types of text:
Find the full API description in the Documentation section.
Copyright © 2019 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4