Czech OCR in C# and .NET
이 문서의 다른 버전:
IronOCR 은 .NET 개발자가 체코어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.체코어
이 패키지에는 .NET 용 OCR 언어 40개가 포함되어 있습니다.
- 체코어
- 체코 최고
- 체코패스트
다운로드
체코어 언어 팩 [čeština]
설치
먼저 체코어 OCR 패키지를 .NET 프로젝트에 설치해야 합니다.
Install-Package IronOcr.Languages.Czech
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 체코어 텍스트를 읽습니다.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new IronTesseract instance
var Ocr = new IronTesseract();
// Set the OCR language to Czech
Ocr.Language = OcrLanguage.Czech;
// Define the input image or PDF and perform OCR
using (var Input = new OcrInput(@"images\Czech.png"))
{
// Read the input and perform OCR
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new IronTesseract instance
var Ocr = new IronTesseract();
// Set the OCR language to Czech
Ocr.Language = OcrLanguage.Czech;
// Define the input image or PDF and perform OCR
using (var Input = new OcrInput(@"images\Czech.png"))
{
// Read the input and perform OCR
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new IronTesseract instance
Dim Ocr = New IronTesseract()
' Set the OCR language to Czech
Ocr.Language = OcrLanguage.Czech
' Define the input image or PDF and perform OCR
Using Input = New OcrInput("images\Czech.png")
' Read the input and perform OCR
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 위의 코드는
IronTesseract클래스를 구성하고 활용하여 주어진 이미지나 PDF에 OCR을 수행하는 방법을 보여줍니다. - 코드가 올바르게 실행되려면 환경에
IronOcr.Languages.Czech패키지가 설치되어 있는지 확인하십시오. OcrInput클래스는 지정된 경로에서 이미지를 로드하는 데 사용되며,Ocr.Read()는 OCR 작업을 수행합니다.Result.Text에는 OCR 출력이 포함되며, 이 경우 콘솔에 출력됩니다.

