RyuzakiH / To-Text-API

Unofficial API for to-text.net in .NET Standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Unofficial API for to-text.net in .NET Standard

License:MIT License


Languages

Language:C# 100.0%