Unofficial API for ToText in .NET
NuGet: https://www.nuget.org/packages/ToText.API
To-Text Converter is a solution, which allows you to convert images and PDFs containing written characters to text documents with no need for any software installation.
Supported file formats: .tif, .jpg, .bmp, .png, .pdf
var client = new ToTextClient();
// using a file in your pc (image or pdf file)
var text1 = client.Convert($"{filePath}", Languages.English);
// using Image object
var text2 = client.Convert(image, Languages.English);
// using a byte array
var text3 = client.Convert(byteArray, Languages.English);
Synchronous Example
var client = new ToTextClient();
var result = client.Convert(@"..\..\..\assets\sample0.png", Languages.English);
Asynchronous Example
var client = new ToTextClient();
var result = await client.ConvertAsync(@"..\..\..\assets\sample1.png", Languages.English);
Full Test Example Here