Skip to content

Nanonets

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Nanonets OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0

Usage

1
2
3
using Nanonets;

using var client = new NanonetsClient(apiKey);

OCR Prediction

Basic example showing how to create a client and run OCR prediction on an image URL.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
using var client = new NanonetsClient(apiKey);

// Create a Nanonets client and predict using an OCR model.
// The model must be created and trained on the Nanonets web app first.
var modelId =
    Environment.GetEnvironmentVariable("NANONETS_MODEL_ID") is { Length: > 0 } modelValue
        ? modelValue
        : throw new AssertInconclusiveException("NANONETS_MODEL_ID environment variable is not found.");

var result = await client.OcrPredict.OcrPredictUrlAsync(
    modelId: modelId,
    urls: "https://nanonets.s3-us-west-2.amazonaws.com/test-images/test1.jpg");

Support

Priority place for bugs: https://github.com/tryAGI/Nanonets/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Nanonets/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.