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;
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,357,159Version:2026.11just released