.NET OCR SDK

Quick Start

Here's the TL;DR of getting started.

First, get an API Key

Then, install this library:

dotnet add package Mindee

In your Startup.cs or Program.cs file, configure the dependency injection (DI) as follows:

services.AddMindeeClient();

This call will configure the client entry point and the PDF library used internally.

Then, in your controller or service instance, pass the class MindeeClient as an argument of your constructor
(or methods if you are using this possibility).

Let's parse an invoice:

var prediction = await _mindeeClient
    .LoadDocument(new FileInfo("/path/to/the/file.ext"))
    .ParseAsync<ReceiptV3Prediction>();

You can also use the client with your custom documents:

CustomEndpoint myEndpoint = new CustomEndpoint(
    EndpointName: "wnine",
    AccountName: "john",
    Version: "1.1" // optional
);

var prediction = await _mindeeClient
    .LoadDocument(new FileInfo("/path/to/the/file.ext"))
    .ParseAsync(myEndpoint);

Or even with a custom representation of your model:

var prediction = await _mindeeClient
    .LoadDocument(new FileInfo("/path/to/the/file.ext"))
    .ParseAsync<YourAwesomeModel>();

Complete details on the working of the library are available in the following guides:

You can view the source code on GitHub.

 

Questions?
Slack Logo IconSlack Logo Icon  Join our Slack