Faroese OCR in C# and .NET
IronOCR 은 .NET 개발자가 페로어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.
이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOCR 의 내용.언어.페로어
이 패키지에는 .NET용 OCR 언어 46개가 포함되어 있습니다.
- 페로 제도
- 페로 제도 최고
- 페로 제도 패스트
다운로드
페로어 언어 팩 [føroyskt]
설치
먼저 페로어 OCR 패키지를 .NET 프로젝트에 설치해야 합니다.
Install-Package IronOcr.Languages.Faroese
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 페로어 텍스트를 읽습니다.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR
' In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese
' Use a using statement for automatic resource management
Using Input = New OcrInput("images\Faroese.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Print the extracted text to console
Console.WriteLine(AllText)
End Using
End Sub
End Class
IronTesseract: 이 객체는 기본 OCR 엔진으로 사용됩니다.Ocr.Language: OCR을 페로어로 설정합니다. 페로어 언어 팩이 설치되어 있는지 확인하십시오.OcrInput: OCR을 위한 입력 파일(이미지 또는 PDF)을 제공합니다.Ocr.Read: 입력을 처리하고 OCR 결과를 생성합니다.Result.Text: OCR 작업에서 텍스트 정보를 추출합니다.

