Dutch OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR to komponent oprogramowania C# umożliwiający programistom .NET odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym po holendersku.
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.Dutch
Ten pakiet zawiera 40 języków OCR dla .NET:
- Dutch
- DutchBest
- DutchFast
Pobieranie
Dutch Language Pack [Nederlands]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie pakietu OCR Dutch do projektu .NET.
Install-Package IronOcr.Languages.Dutch
Przyklad kodu
Ten przykład kodu C# czyta holenderski tekst z obrazu lub dokumentu PDF.
// The first step is to ensure the IronOcr.Languages.Dutch package is installed.
// You can do this from the Package Manager Console with the command:
// PM> Install-Package IronOcr.Languages.Dutch
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dutch.
// This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch;
// Use a using statement to manage the OcrInput resource lifecycle.
using (var Input = new OcrInput(@"images\Dutch.png"))
{
// Read the image and perform OCR to extract text.
var Result = Ocr.Read(Input);
// Store the recognized text into a variable.
var AllText = Result.Text;
// You can now use the extracted text stored in AllText.
}
// The first step is to ensure the IronOcr.Languages.Dutch package is installed.
// You can do this from the Package Manager Console with the command:
// PM> Install-Package IronOcr.Languages.Dutch
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dutch.
// This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch;
// Use a using statement to manage the OcrInput resource lifecycle.
using (var Input = new OcrInput(@"images\Dutch.png"))
{
// Read the image and perform OCR to extract text.
var Result = Ocr.Read(Input);
// Store the recognized text into a variable.
var AllText = Result.Text;
// You can now use the extracted text stored in AllText.
}
' The first step is to ensure the IronOcr.Languages.Dutch package is installed.
' You can do this from the Package Manager Console with the command:
' PM> Install-Package IronOcr.Languages.Dutch
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Dutch.
' This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch
' Use a using statement to manage the OcrInput resource lifecycle.
Using Input = New OcrInput("images\Dutch.png")
' Read the image and perform OCR to extract text.
Dim Result = Ocr.Read(Input)
' Store the recognized text into a variable.
Dim AllText = Result.Text
' You can now use the extracted text stored in AllText.
End Using
Ten kod ustawia proces OCR w C# do odczytu holenderskiego tekstu. Inicjuje obiekt IronTesseract, określa język OCR i przetwarza plik obrazu wejściowego. Wynikiem jest wyodrębniony tekst z pliku, który można wykorzystać w aplikacji zgodnie z potrzebami.

