Canadian Aboriginal Alphabet OCR in C# and .NET
IronOCR 은 .NET 개발자가 이미지와 PDF 문서에서 캐나다 원주민 알파벳을 포함한 126개 언어의 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.캐나다 원주민어
이 패키지에는 .NET 용 OCR 언어 103개가 포함되어 있습니다.
- 캐나다 원주민 알파벳
- 캐나다 원주민 알파벳 베스트
- 캐나다 원주민AlphabetFast
다운로드
캐나다 원주민 알파벳 언어 팩 [캐나다 원주민]
설치
먼저 해야 할 일은 .NET 프로젝트에 캐나다 원주민 알파벳 OCR 패키지를 설치하는 것입니다.
Install-Package IronOcr.Languages.CanadianAboriginal
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 캐나다 원주민 알파벳 텍스트를 읽습니다. 이 프로그램은 광학 문자 인식을 수행하기 위해 IronOCR 라이브러리를 사용합니다.
// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal;
// Provide the path to the image or PDF for OCR processing
using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal;
// Provide the path to the image or PDF for OCR processing
using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' Install the IronOCR package via NuGet
' PM> Install-Package IronOcr.Languages.CanadianAboriginal
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal
' Provide the path to the image or PDF for OCR processing
Using Input = New OcrInput("images\CanadianAboriginal.png")
' Perform OCR on the input file
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- 위 코드는
IronOcr.IronTesseract클래스를 사용하여 OCR을 수행합니다. - 캐나다 원주민 텍스트에 대한 언어 모델을 지정하기 위해
OcrLanguage.CanadianAboriginal를 설정합니다. OcrInput객체는 경로에 지정된 이미지를 로드합니다.Ocr.Read메소드는 이미지를 처리하고 인식된 텍스트를 반환합니다.- 마지막으로 추출된 텍스트가 콘솔에 출력됩니다.

