Uyghur OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR to komponent oprogramowania w C#, który umożliwia programistom .NET odczyt tekstu z obrazów i dokumentów PDF w 126 językach, w tym ujgurskim.
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.Uyghur
Ten pakiet zawiera 43 języki OCR dla .NET:
- Ujgurski
- UjgurskiNajlepszy
- UjgurskiSzybki
Pobieranie
Uyghur Language Pack [Uyƣurqə]
Instalacja
Pierwszą rzeczą, jaką musimy zrobić, jest zainstalowanie naszego pakietu OCR ujgurskiego do projektu .NET.
Install-Package IronOcr.Languages.Uyghur
Przyklad kodu
Ten przykład kodu C# odczytuje tekst ujgurski z obrazu lub dokumentu PDF.
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur;
// Create an OCR input object from a file. This can be an image or a PDF.
using (var Input = new OcrInput(@"images\Uyghur.png"))
{
// Perform text recognition on the input data.
var Result = Ocr.Read(Input);
// Extract the recognized text from the OCR result.
var AllText = Result.Text;
// Additional processing of AllText can be done here.
}
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur;
// Create an OCR input object from a file. This can be an image or a PDF.
using (var Input = new OcrInput(@"images\Uyghur.png"))
{
// Perform text recognition on the input data.
var Result = Ocr.Read(Input);
// Extract the recognized text from the OCR result.
var AllText = Result.Text;
// Additional processing of AllText can be done here.
}
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur
' Create an OCR input object from a file. This can be an image or a PDF.
Using Input = New OcrInput("images\Uyghur.png")
' Perform text recognition on the input data.
Dim Result = Ocr.Read(Input)
' Extract the recognized text from the OCR result.
Dim AllText = Result.Text
' Additional processing of AllText can be done here.
End Using

