Hebrew OCR in C# and .NET
이 문서의 다른 버전:
IronOCR는 C# 소프트웨어 구성 요소로, .NET 코더가 히브리어를 포함한 126개 언어로 이미지 및 PDF 문서에서 텍스트를 읽을 수 있게 해줍니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOcr.Languages.Hebrew의 내용
이 패키지에는 .NET 용 OCR 언어 108개가 포함되어 있습니다.
- 히브리어
- 히브리어베스트
- 히브리어빠른
- 히브리어알파벳
- 히브리어알파벳베스트
- 히브리어알파벳빠른
다운로드
히브리어 언어 팩 [עברית]
설치
우리가 해야 할 첫 번째 일은 .NET 프로젝트에 Hebrew OCR 패키지를 설치하는 것입니다.
Install-Package IronOcr.Languages.Hebrew
코드 예제
이 C# 코드 예제는 이미지나 PDF 문서에서 히브리어 텍스트를 읽습니다.
// Include the IronOcr namespace to work with OCR features
using IronOcr;
// Create an OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew;
// Process the image and extract text using OCR
using (var Input = new OcrInput(@"images\Hebrew.png"))
{
// Read the text from the input image
var Result = Ocr.Read(Input);
// Store the extracted text
var AllText = Result.Text;
// Output the extracted text to the console (optional)
Console.WriteLine(AllText);
}
// Include the IronOcr namespace to work with OCR features
using IronOcr;
// Create an OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew;
// Process the image and extract text using OCR
using (var Input = new OcrInput(@"images\Hebrew.png"))
{
// Read the text from the input image
var Result = Ocr.Read(Input);
// Store the extracted text
var AllText = Result.Text;
// Output the extracted text to the console (optional)
Console.WriteLine(AllText);
}
' Include the IronOcr namespace to work with OCR features
Imports IronOcr
' Create an OCR engine
Private Ocr = New IronTesseract()
' Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew
' Process the image and extract text using OCR
Using Input = New OcrInput("images\Hebrew.png")
' Read the text from the input image
Dim Result = Ocr.Read(Input)
' Store the extracted text
Dim AllText = Result.Text
' Output the extracted text to the console (optional)
Console.WriteLine(AllText)
End Using
- IronTesseract: 이 클래스는 OCR 엔진을 초기화하는 데 사용됩니다.
- OcrInput: 이는 OCR 엔진이 읽을 입력 이미지나 문서를 나타냅니다.
- Ocr.Read: 이 메서드는 입력을 처리하고 추출된 텍스트가 포함된 결과를 반환합니다.
- Result.Text: 추출된 텍스트를 저장하며 추가 처리에 사용할 수 있습니다.

