Kyrgyz OCR in C# and .NET
이 문서의 다른 버전:
IronOCR은 키르기스어를 포함한 126개의 언어로 .NET 개발자가 이미지와 PDF 문서에서 텍스트를 읽을 수 있게 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOcr.Languages.Kyrgyz의 내용
이 패키지에는 .NET 용 OCR 언어 43개가 포함되어 있습니다.
- Kyrgyz
- KyrgyzBest
- KyrgyzFast
다운로드
키르기스어 언어 팩 [Кыргызча]
설치
우리가 해야 할 첫 번째 일은 Kyrgyz OCR 패키지를 .NET 프로젝트에 설치하는 것입니다.
Install-Package IronOcr.Languages.Kyrgyz
코드 예제
이 C# 코드 예시는 이미지 또는 PDF 문서에서 키르기스어 텍스트를 읽습니다.
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Public Class KyrgyzOcrExample
Public Sub PerformOcr()
' Initialize IronTesseract for OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz
' Define the input using an image file path
Using Input = New OcrInput("images\Kyrgyz.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extracted text from the image
Dim AllText As String = Result.Text
' Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 이 코드 블록은 OCR을 수행하기 위해
IronTesseract객체를 초기화합니다. OcrLanguage.Kyrgyz열거형을 사용하여 언어를 Kyrgyz로 설정합니다.OcrInput클래스는 텍스트를 추출할 이미지 파일 경로를 지정하는 데 사용됩니다.Ocr.Read(Input)는 OCR 과정을 수행하고Result.Text을 통해 접근 가능한 추출된 텍스트를 포함하는 결과를 제공합니다.- 마지막으로,
Console.WriteLine(AllText)는 콘솔에 추출된 텍스트를 출력합니다.

