Yiddish OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR to komponent oprogramowania C#, który pozwala programistom .NET na odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym w jidysz.
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.Yiddish
Ten pakiet zawiera 46 języków OCR dla .NET:
- Jidysz
- JidyszBest
- JidyszFast
Pobieranie
Yiddish Language Pack [יידיש]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu Jidysz OCR do projektu .NET.
Install-Package IronOcr.Languages.Yiddish
Przyklad kodu
Ten przykład kodu C# odczytuje tekst w jidysz z obrazu lub dokumentu PDF.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class, which is responsible for performing OCR
var Ocr = new IronTesseract();
// Specify the language to be Yiddish
Ocr.Language = OcrLanguage.Yiddish;
// Using block ensures that resources are disposed of correctly
using (var Input = new OcrInput(@"images\Yiddish.png")) // Specify the path to your image file
{
// Perform the OCR operation on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Optionally, you can output or process the `AllText` variable as needed
}
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class, which is responsible for performing OCR
var Ocr = new IronTesseract();
// Specify the language to be Yiddish
Ocr.Language = OcrLanguage.Yiddish;
// Using block ensures that resources are disposed of correctly
using (var Input = new OcrInput(@"images\Yiddish.png")) // Specify the path to your image file
{
// Perform the OCR operation on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Optionally, you can output or process the `AllText` variable as needed
}
' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class, which is responsible for performing OCR
Private Ocr = New IronTesseract()
' Specify the language to be Yiddish
Ocr.Language = OcrLanguage.Yiddish
' Using block ensures that resources are disposed of correctly
Using Input = New OcrInput("images\Yiddish.png") ' Specify the path to your image file
' Perform the OCR operation on the input image
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Optionally, you can output or process the `AllText` variable as needed
End Using

