Luxembourgish OCR in C# and .NET
이 문서의 다른 버전:
IronOCR는 Luxembourgish를 포함한 126개의 언어로 .NET 코더들이 이미지와 PDF 문서에서 텍스트를 읽을 수 있게 하는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 제작된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOcr.Languages.Luxembourgish의 내용
이 패키지에는 .NET용 OCR 언어 64개가 포함되어 있습니다.
- Luxembourgish
- LuxembourgishBest
- LuxembourgishFast
다운로드
Luxembourgish Language Pack [Lëtzebuergesch]
설치
가장 먼저 해야 할 일은 .NET 프로젝트에 Luxembourgish OCR 패키지를 설치하는 것입니다.
Install-Package IronOcr.Languages.Luxembourgish
코드 예제
이 C# 코드 예제는 이미지나 PDF 문서에서 Luxembourgish 텍스트를 읽습니다.
// Import the IronOcr namespace to utilize OCR functions
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract to perform OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish;
// Load the input image or PDF from which to extract the text
using (var Input = new OcrInput(@"images\Luxembourgish.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to utilize OCR functions
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract to perform OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish;
// Load the input image or PDF from which to extract the text
using (var Input = new OcrInput(@"images\Luxembourgish.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to utilize OCR functions
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract to perform OCR
Dim Ocr = New IronTesseract()
' Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish
' Load the input image or PDF from which to extract the text
Using Input = New OcrInput("images\Luxembourgish.png")
' Perform OCR on the input document
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 이 예제는 IronOCR를 사용하여 로컬 문서에서 Luxembourgish 텍스트를 인식하는 방법을 보여줍니다.
- 언어는 해당 언어의 텍스트 인식 정확성을 높이기 위해 Luxembourgish로 설정됩니다.
OcrInput()는 입력 이미지 또는 PDF 파일을 지정하는 데 사용됩니다.Ocr.Read()은(는) 문서를 처리하며, 인식된 텍스트는Result.Text을 통해 접근할 수 있습니다.

