Greek Alphabet OCR in C# and .NET
이 문서의 다른 버전:
IronOCR는 .NET 코더가 그리스어 알파벳을 포함하여 126개 언어의 이미지 및 PDF 문서에서 텍스트를 읽을 수 있게 하는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOcr.Languages.Greek의 내용
이 패키지에는 .NET용 OCR 언어 102개가 포함되어 있습니다.
- 그리스어
- GreekBest
- GreekFast
- 그리스어 알파벳
- GreekAlphabetBest
- GreekAlphabetFast
다운로드
그리스어 알파벳 언어 팩 [ελληνικά]
설치
첫 번째 단계는 .NET 프로젝트에 그리스어 알파벳 OCR 패키지를 설치하는 것입니다.
Install-Package IronOcr.Languages.Greek
코드 예제
이 C# 코드 예제는 이미지나 PDF 문서에서 그리스 알파벳 텍스트를 읽습니다.
// Import the IronOcr namespace
using IronOcr;
class GreekOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek;
// Load the image or PDF containing Greek text
using (var Input = new OcrInput(@"images\Greek.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class GreekOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek;
// Load the image or PDF containing Greek text
using (var Input = new OcrInput(@"images\Greek.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class GreekOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek
' Load the image or PDF containing Greek text
Using Input = New OcrInput("images\Greek.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
- IronTesseract: 이 클래스는 OCR 작업을 수행하는 역할을 합니다.
- OcrInput: 이 클래스는 OCR 처리를 위해 이미지나 PDF 파일을 로드하는 데 사용됩니다.
- Ocr.Read(): 입력 데이터에 대한 OCR을 수행하여 인식된 텍스트를 제공합니다.
이 코드를 실행하기 전에 IronOcr 라이브러리와 그리스어 언어 팩이 .NET 프로젝트에 제대로 설치되어 있는지 확인하십시오. 이 코드는 images/Greek.png에 위치한 이미지에서 추출한 텍스트를 출력합니다.

