Lire une capture d'écran
using IronOcr;
using System;
using System.Linq;

// Instantiate OCR engine
var ocr = new IronTesseract();

using var inputScreenshot = new OcrInput();
inputScreenshot.LoadImage("screenshotOCR.png");

// Perform OCR
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);

// Output screenshot information
Console.WriteLine(result.Text);
Console.WriteLine(result.TextRegions.First().Region.X);
Console.WriteLine(result.TextRegions.Last().Region.Width);
Console.WriteLine(result.Confidence);
NuGet Download
PM > Install-Package IronOcr
Lire une capture d'écran

Lire une capture d'écran

Voir sur GitHub

Prêt à commencer?

Nuget Downloads 6,357,159Version :2026.11vient de sortir