Breton OCR in C# and .NET
IronOCR 은 .NET 개발자가 브르타뉴어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다. 이는 .NET 개발자 전용으로 제작된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.브르타뉴어
이 패키지에는 .NET 용 OCR 언어 43개가 포함되어 있습니다.
- 브르타뉴어
- 브레튼베스트
- 브레튼패스트
다운로드
브르타뉴어 언어 팩 [brezhoneg]
설치
먼저 브르타뉴어 OCR 패키지를 .NET 프로젝트에 설치해야 합니다.
Install-Package IronOcr.Languages.Breton
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 브르타뉴어 텍스트를 읽습니다.
// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
' Import the IronOCR namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton
' Read text from a Breton image or PDF document
Using Input = New OcrInput("images\Breton.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Extract text from the OCR result
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 이 예제는 IronOCR 라이브러리를 사용하여 브르타뉴어 텍스트 이미지에 OCR을 수행하는 방법을 보여줍니다.
IronTesseract는 핵심 OCR 기능을 제공합니다.OcrInput는 브르타뉴어 텍스트가 포함된 이미지의 경로로 생성됩니다.Read메서드는 입력 이미지를 처리하여 텍스트를 추출한 후, 이를 콘솔에 출력합니다.

