Bosnian OCR in C# and .NET
이 문서의 다른 버전:
IronOCR 은 .NET 개발자가 보스니아어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 제작된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.보스니아어
이 패키지에는 .NET용 OCR 언어 46개가 포함되어 있습니다.
- 보스니아어
- 보스니아 베스트
- 보스니아 패스트
다운로드
보스니아어 언어 팩 [bosanski jezik]
설치
먼저 해야 할 일은 .NET 프로젝트에 보스니아어 OCR 패키지를 설치하는 것입니다.
Install-Package IronOcr.Languages.Bosnian
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 보스니아어 텍스트를 읽습니다.
// Ensure the IronOCR library is included
using IronOcr;
class Program
{
static void Main()
{
// Initialize an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Bosnian
Ocr.Language = OcrLanguage.Bosnian;
// Use OcrInput to specify the input file path for OCR
using (var Input = new OcrInput(@"images\Bosnian.png"))
{
// Perform OCR on the input image or PDF
var Result = Ocr.Read(Input);
// Extract the recognized text from the result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
// Ensure the IronOCR library is included
using IronOcr;
class Program
{
static void Main()
{
// Initialize an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Bosnian
Ocr.Language = OcrLanguage.Bosnian;
// Use OcrInput to specify the input file path for OCR
using (var Input = new OcrInput(@"images\Bosnian.png"))
{
// Perform OCR on the input image or PDF
var Result = Ocr.Read(Input);
// Extract the recognized text from the result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
' Ensure the IronOCR library is included
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize an instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the OCR language to Bosnian
Ocr.Language = OcrLanguage.Bosnian
' Use OcrInput to specify the input file path for OCR
Using Input = New OcrInput("images\Bosnian.png")
' Perform OCR on the input image or PDF
Dim Result = Ocr.Read(Input)
' Extract the recognized text from the result
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 위 코드는 IronOCR 사용하여 보스니아어 텍스트 이미지에 OCR을 수행하는 방법을 보여줍니다.
IronTesseract클래스는 OCR 작업을 구성하고 실행하는 데 사용됩니다.OcrInput클래스는 텍스트를 추출할 입력 이미지 파일을 지정하는 데 사용됩니다.- 마지막으로 인식된 텍스트가 콘솔에 출력됩니다.

