Tatar OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR to komponent programistyczny C#, który umożliwia programistom .NET odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym w tatarskim.
Jest to zaawansowana wersja Tesseract, stworzona specjalnie dla programistów .NET, która regularnie przewyższa inne silniki Tesseract zarówno pod względem szybkości, jak i dokładności.
Zawartość IronOcr.Languages.Tatar
Ten pakiet zawiera 40 języków OCR dla .NET:
- Tatar
- TatarBest
- TatarFast
Pobieranie
Tatar Language Pack [татар теле]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, to zainstalować nasz pakiet OCR Tatar do projektu .NET.
Install-Package IronOcr.Languages.Tatar
Przyklad kodu
Ten przykład kodu C# odczytuje tekst tatarski z obrazu lub dokumentu PDF.
// Install the Tatar OCR Language package using NuGet
// PM> Install-Package IronOcr.Languages.Tatar
using IronOcr;
var Ocr = new IronTesseract();
// Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar;
// Define the input source as an image or PDF containing Tatar text
using (var Input = new OcrInput(@"images\Tatar.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text and store it in a variable
var AllText = Result.Text;
}
// Install the Tatar OCR Language package using NuGet
// PM> Install-Package IronOcr.Languages.Tatar
using IronOcr;
var Ocr = new IronTesseract();
// Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar;
// Define the input source as an image or PDF containing Tatar text
using (var Input = new OcrInput(@"images\Tatar.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text and store it in a variable
var AllText = Result.Text;
}
' Install the Tatar OCR Language package using NuGet
' PM> Install-Package IronOcr.Languages.Tatar
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar
' Define the input source as an image or PDF containing Tatar text
Using Input = New OcrInput("images\Tatar.png")
' Perform OCR to read text from the input image
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text and store it in a variable
Dim AllText = Result.Text
End Using

