Inuktitut OCR in C# and .NET
IronOCR to komponent oprogramowania w C#, który pozwala programistom .NET odczytywać tekst z obrazów i dokumentów PDF w 126 językach, w tym w języku Inuktitut.
Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.
Zawartość IronOcr.Languages.Inuktitut
Pakiet ten zawiera 52 języki OCR dla .NET:
- Inuktitut
- InuktitutBest
- InuktitutFast
Pobieranie
Inuktitut Language Pack [ᐃᓄᒃᑎᑐᑦ]
Instalacja
Pierwszym krokiem jest zainstalowanie pakietu OCR Inuktitut w swoim projekcie .NET:
Install-Package IronOcr.Languages.Inuktitut
Przyklad kodu
Poniższy przykład kodu w C# odczytuje tekst w języku Inuktitut z obrazu lub dokumentu PDF.
// First, make sure to install the IronOcr.Languages.Inuktitut package:
// PM> Install-Package IronOcr.Languages.Inuktitut
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for performing OCR
var Ocr = new IronTesseract();
// Specify the OCR language as Inuktitut
Ocr.Language = OcrLanguage.Inuktitut;
// Define the input image or PDF file containing Inuktitut text
using (var Input = new OcrInput(@"images\Inuktitut.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract and print the recognized text
var AllText = Result.Text;
Console.WriteLine("Recognized Inuktitut Text:");
Console.WriteLine(AllText);
}
}
}
// First, make sure to install the IronOcr.Languages.Inuktitut package:
// PM> Install-Package IronOcr.Languages.Inuktitut
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for performing OCR
var Ocr = new IronTesseract();
// Specify the OCR language as Inuktitut
Ocr.Language = OcrLanguage.Inuktitut;
// Define the input image or PDF file containing Inuktitut text
using (var Input = new OcrInput(@"images\Inuktitut.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract and print the recognized text
var AllText = Result.Text;
Console.WriteLine("Recognized Inuktitut Text:");
Console.WriteLine(AllText);
}
}
}
' First, make sure to install the IronOcr.Languages.Inuktitut package:
' PM> Install-Package IronOcr.Languages.Inuktitut
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract for performing OCR
Dim Ocr = New IronTesseract()
' Specify the OCR language as Inuktitut
Ocr.Language = OcrLanguage.Inuktitut
' Define the input image or PDF file containing Inuktitut text
Using Input = New OcrInput("images\Inuktitut.png")
' Perform OCR on the input file
Dim Result = Ocr.Read(Input)
' Extract and print the recognized text
Dim AllText = Result.Text
Console.WriteLine("Recognized Inuktitut Text:")
Console.WriteLine(AllText)
End Using
End Sub
End Class
Ten kod pokazuje, jak używać IronOCR do rozpoznawania tekstu w języku Inuktitut z obrazu. Po ustawieniu języka na Inuktitut, kod przetwarza określony plik obrazu i wyświetla rozpoznany tekst na konsoli.

