Welsh OCR in C# and .NET
Curtis Chau
업데이트됨: 2026년 8월 2일
이 문서의 다른 버전:
IronOCR 은 .NET 개발자가 웨일스어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다. 이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.
IronOcr 의 내용.언어.웨일스어
이 패키지에는 .NET 용 웨일스어 OCR 언어 세 가지 버전이 포함되어 있습니다.
- 웨일스어
- 웨일스어Best
- 웨일즈 패스트
다운로드
웨일스어 학습 자료 [Cymraeg]
설치
첫 번째 단계는 .NET 프로젝트에 웨일스어 OCR 패키지를 설치하는 것입니다.
코드 예제
이 C# 코드 예제는 이미지 또는 PDF 문서에서 웨일스어 텍스트를 읽는 방법을 보여줍니다.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Welsh
Ocr.Language = OcrLanguage.Welsh;
// Read text from the given image
using (var Input = new OcrInput(@"images\Welsh.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output text to the console
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Class Program
Shared Sub Main()
' Create an instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Welsh
Ocr.Language = OcrLanguage.Welsh
' Read text from the given image
Using Input = New OcrInput("images\Welsh.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class' Import the IronOcr namespace
Imports IronOcr
Class Program
Shared Sub Main()
' Create an instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Welsh
Ocr.Language = OcrLanguage.Welsh
' Read text from the given image
Using Input = New OcrInput("images\Welsh.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class이 코드에서:
IronOcr네임스페이스를 사용하여 OCR 기능에 접근하는 것으로 시작합니다.- IronOCR가 제공하는 주요 클래스인
IronTesseract의 인스턴스를 생성하여 OCR 작업을 수행합니다. Ocr.Language = OcrLanguage.Welsh을(를) 사용하여 OCR 언어를 웨일스어로 설정합니다.- OCR 처리를 위해
images디렉토리에 위치한Welsh.png라는 이미지 파일을 엽니다. - 마지막으로,
Ocr.Read(Input)메서드가 이미지에서 텍스트를 읽고, 추출된 텍스트는AllText에 저장됩니다. - 인식된 웨일스어 텍스트는 콘솔에 출력됩니다.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.