Cyrillic Alphabet OCR in C
IronOCR 은 .NET 개발자가 키릴 문자를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.키릴 문자
이 패키지에는 .NET 용 OCR 언어 73개가 포함되어 있습니다.
- 키릴 문자
- 키릴 문자 최고
- 키릴 문자 빠른
다운로드
키릴 문자 알파벳 언어 팩 [키릴 문자 스크립트]
설치
먼저 .NET 프로젝트에 키릴 문자 OCR 패키지를 설치해야 합니다.
Install-Package IronOcr.Languages.Cyrillic
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 키릴 문자 텍스트를 읽습니다.
using IronOcr;
public class OcrExample
{
public void ReadCyrillicText()
{
// Initialize a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic;
// Create a new OCR input from an image file
using (var Input = new OcrInput(@"images\Cyrillic.png"))
{
// Read the image using the OCR engine
var Result = Ocr.Read(Input);
// Retrieve Recognized Text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
using IronOcr;
public class OcrExample
{
public void ReadCyrillicText()
{
// Initialize a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic;
// Create a new OCR input from an image file
using (var Input = new OcrInput(@"images\Cyrillic.png"))
{
// Read the image using the OCR engine
var Result = Ocr.Read(Input);
// Retrieve Recognized Text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Public Class OcrExample
Public Sub ReadCyrillicText()
' Initialize a new instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic
' Create a new OCR input from an image file
Using Input = New OcrInput("images\Cyrillic.png")
' Read the image using the OCR engine
Dim Result = Ocr.Read(Input)
' Retrieve Recognized Text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
IronTesseract: OCR 작업을 구성하고 실행하는 데 사용하는 OCR 엔진 클래스입니다.OcrInput: OCR을 수행하려는 입력 이미지 또는 문서를 나타내는 클래스입니다.OcrLanguage.Cyrillic: OCR 엔진이 인식을 위해 키릴 언어 패키지를 사용해야 함을 지정합니다.Result.Text: OCR 결과 객체에서 인식된 텍스트에 접근합니다.
이 예시는 키릴 문자가 포함된 이미지를 처리하여 텍스트를 추출하는 간단한 사용 사례를 보여줍니다.

