[C#/VB.NET] 숫자,한글,영어 OCR 프로젝트
1. https://ironsoftware.com/csharp/ocr/
에 가서 .dll 파일 다운로드
The C# OCR Library | Iron Ocr
Automatic Image to Text using System; using IronOcr; //.. var Ocr = new AutoOcr(); var Result = Ocr.Read(@"C:\path\to\image.png"); Console.WriteLine(Result.Text); Imports System Imports IronOcr '.. Private Ocr = New AutoOcr() Private Result = Ocr.Read("C:\
ironsoftware.com
2. 프로젝트>참조 추가>찾아보기>IronOcr.dll 파일 참조할것
3. 코드 블럭에 VB.NET 지원이 안돼서...
Imports IronOcr
Module Module1
Sub Main()
Dim Ocr = New AdvancedOcr
Ocr.EnhanceContrast = True
Ocr.CleanBackgroundNoise = True
Ocr.EnhanceResolution = True
Ocr.ColorDepth = 4
Ocr.DetectWhiteTextOnDarkBackgrounds = True
Ocr.ColorSpace = AdvancedOcr.OcrColorSpace.Color
Ocr.Strategy = IronOcr.AdvancedOcr.OcrStrategy.Advanced
Ocr.Language = IronOcr.Languages.English.OcrLanguagePack
Dim Result = Ocr.Read("이미지 파일 경로")
Console.WriteLine(Result.Text)
End Sub
End Module
위 처럼 몇 기능을 설정가능
혹은 간단하게
Dim Ocr = New AutoOcr
Dim Result = Ocr.Read("이미지 파일 경로")
Console.WriteLine(Result.Text)
이렇게도 가능
'자료' 카테고리의 다른 글
[C#/VB.NET] WIN 32 API GetKeyState 함수 (0) | 2021.09.25 |
---|---|
[OpenCvSharp] Mat to Bitmap (0) | 2021.09.25 |
한국주소 영문변환 2가지 방법 (0) | 2021.09.23 |
파이어 폭스 HttpFox플러그인 설치 (1) | 2021.09.21 |
[C#/VB.NET] Listview - Column Auto Size (컬럼 사이즈 자동 조절) (0) | 2021.09.20 |