Fraktur Alphabet OCR in C
IronOCR 은 .NET 개발자가 프락투어 알파벳을 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.프락투어
이 패키지에는 .NET 용 OCR 언어 70개가 포함되어 있습니다.
- 프락투르알파벳
- 프락투르알파벳베스트
- 프락투르알파벳Fast
다운로드
Fraktur 알파벳 언어 팩 [일반 Fraktur]
설치
먼저 해야 할 일은 Fraktur Alphabet OCR 패키지를 .NET 프로젝트에 설치하는 것입니다.
Install-Package IronOcr.Languages.Fraktur
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 프락투어 알파벳 텍스트를 읽습니다.
// Requires the IronOcr NuGet package and the Fraktur language package to be installed.
using IronOcr;
class FrakturOCRExample
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur;
// Load the image containing Fraktur text
using (var Input = new OcrInput(@"images\Fraktur.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
// Requires the IronOcr NuGet package and the Fraktur language package to be installed.
using IronOcr;
class FrakturOCRExample
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur;
// Load the image containing Fraktur text
using (var Input = new OcrInput(@"images\Fraktur.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
' Requires the IronOcr NuGet package and the Fraktur language package to be installed.
Imports IronOcr
Friend Class FrakturOCRExample
Shared Sub Main()
' Create an instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur
' Load the image containing Fraktur text
Using Input = New OcrInput("images\Fraktur.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End Class
이 예시에서는 다음과 같습니다.
- 우리가
IronTesseract객체를 생성하여 우리 OCR 엔진으로 사용합니다. OcrLanguage.Fraktur을 사용하여 언어 설정을 Fraktur로 변경합니다.- 이미지 파일 (
@"images\Fraktur.png")을OcrInput객체에 로드합니다. Ocr.Read()메서드가 입력 이미지를 처리하고 OCR 결과를 반환합니다.- 마지막으로 추출된 텍스트를 콘솔에 출력합니다.

