Skip to content

RyuzakiH/To-Text-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To-Text-API NuGet

Unofficial API for ToText in .NET

NuGet: https://www.nuget.org/packages/ToText.API

Website Description

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

Usage

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

Supported Platforms

.NET Standard 2.0

Dependencies