Estonian OCR in C# and .NET
이 문서의 다른 버전:
IronOCR 은 .NET 개발자가 에스토니아어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다. 이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.에스토니아어
이 패키지에는 .NET 용 OCR 언어가 다음과 같이 포함되어 있습니다.
- 에스토니아어
- 에스토니아 최고
- 에스토니아 패스트
다운로드
에스토니아어 언어 팩 [eesti]
설치
먼저 .NET 프로젝트에 에스토니아어 OCR 패키지를 설치해야 합니다.
Install-Package IronOcr.Languages.Estonian
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 에스토니아어 텍스트를 읽습니다.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}
' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class
Private Ocr = New IronTesseract()
' Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian
' Load the image or PDF from which text needs to be extracted
Using Input = New OcrInput("images\Estonian.png")
' Perform OCR to read text from the specified input
Dim Result = Ocr.Read(Input)
' Extract all the recognized text from the OCR result
Dim AllText = Result.Text
End Using
코드 설명:
- IronTesseract: 이는 IronOCR 에서 OCR 작업을 수행하기 위해 제공하는 주요 클래스입니다.
- Ocr.Language: 이 속성을 설정하여 OCR 과정에서 사용할 언어를 정의합니다. 여기서는 언어가 에스토니아어로 설정되어 있습니다.
- OcrInput: 읽어올 이미지 또는 PDF 문서를 지정하는 데 사용됩니다. 파일 경로를 입력으로 받습니다.
- Ocr.Read(Input): 이 메서드는 지정된 입력을 처리하고 OCR을 수행합니다.
- Result.Text: 이 속성에는 이미지 또는 PDF 문서에서 성공적으로 인식 및 추출된 모든 텍스트가 포함됩니다.

