Bulgarian OCR in C# and .NET
이 문서의 다른 버전:
IronOCR 은 .NET 개발자가 불가리아어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 제작된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.불가리아어
이 패키지에는 .NET용 OCR 언어 52개가 포함되어 있습니다.
- 불가리아어
- 불가리안베스트
- BulgarianFast
다운로드
불가리아어 언어 팩 [български език]
설치
먼저 불가리아어 OCR 패키지를 .NET 프로젝트에 설치해야 합니다.
Install-Package IronOcr.Languages.Bulgarian
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 불가리아어 텍스트를 읽습니다.
// Ensure you have installed the IronOCR language package for Bulgarian
// PM> Install-Package IronOcr.Languages.Bulgarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian;
// Load the image or PDF document containing Bulgarian text
using (var Input = new OcrInput(@"images\Bulgarian.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Optionally, print or use the extracted text as needed
Console.WriteLine(AllText);
}
// Ensure you have installed the IronOCR language package for Bulgarian
// PM> Install-Package IronOcr.Languages.Bulgarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian;
// Load the image or PDF document containing Bulgarian text
using (var Input = new OcrInput(@"images\Bulgarian.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Optionally, print or use the extracted text as needed
Console.WriteLine(AllText);
}
' Ensure you have installed the IronOCR language package for Bulgarian
' PM> Install-Package IronOcr.Languages.Bulgarian
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian
' Load the image or PDF document containing Bulgarian text
Using Input = New OcrInput("images\Bulgarian.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all the text from the OCR result
Dim AllText = Result.Text
' Optionally, print or use the extracted text as needed
Console.WriteLine(AllText)
End Using
이 예시에서는 다음과 같습니다.
- OCR 작업을 수행하기 위해
IronTesseract객체를 생성합니다. OcrLanguage.Bulgarian을 사용하여 OCR 언어를 불가리아어로 설정합니다.- 이미지를
Bulgarian.png파일에서OcrInput객체로 로드합니다. Ocr.Read(Input)을 사용하여 이미지에서 텍스트를 추출합니다.- 마지막으로, 추출된 텍스트는
Result.Text통해 접근합니다.

