using IronOcr;
using IronSoftware.Drawing;
// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputLicensePlate = new OcrInput();
inputLicensePlate.LoadImage("LicensePlate.jpeg");
// Perform OCR
OcrLicensePlateResult result = ocr.ReadLicensePlate(inputLicensePlate);
// Retrieve license plate coordinates
Rectangle rectangle = result.Licenseplate;
// Retrieve license plate value
string output = result.Text;
Imports IronOcr
Imports IronSoftware.Drawing
' Instantiate OCR engine
Private ocr = New IronTesseract()
Private inputLicensePlate = New OcrInput()
inputLicensePlate.LoadImage("LicensePlate.jpeg")
' Perform OCR
Dim result As OcrLicensePlateResult = ocr.ReadLicensePlate(inputLicensePlate)
' Retrieve license plate coordinates
Dim rectangle As Rectangle = result.Licenseplate
' Retrieve license plate value
Dim output As String = result.Text
Install-Package IronOcr
차량 번호판 읽기
이 방법은 IronTesseract OCR 엔진을 사용하여 이미지에서 차량 번호판을 효과적으로 추출합니다. 예시는 다음과 같습니다:
IronTesseract 초기화: OCR 작업을 처리하기 위해 IronTesseract의 인스턴스가 생성됩니다.
이미지 로딩: 차량 번호판이 포함된 이미지 파일은 OcrInput 클래스를 사용하여 로드됩니다.