IRONSOFTWAREHOME
Read License Plate
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
Dim ocr = New IronTesseract()

Using 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

End Using
NuGet Download
PM > Install-Package IronOcr
Read License Plate

Read License Plate

This approach effectively extracts license plate numbers from images using the IronTesseract OCR engine. The example illustrates:

  1. IronTesseract Initialization: An instance of IronTesseract is created to handle OCR operations.
  2. Image Loading: The image file containing the license plate is loaded using the OcrInput class.
  3. OCR Process: The Read method is used on the OcrInput object, which performs OCR and identifies text from the image.
  4. Result Analysis: The recognized words are iterated. If any word is identified as a license plate, its text and bounding box are printed.

This code can be particularly useful in applications related to parking management, vehicle access control, and automated recognition systems.

Discover How to Read License Plates with IronOCR
View on GitHub

Ready to Get Started?

Nuget Downloads 6,236,385Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required