Implementation of Licensed Plate Detection and Noise Removal in Image Processing

This paper discusses the implementation of car license plate recognition systems, highlighting their growing necessity in Malaysia due to increasing vehicle numbers and their diverse applications in traffic management, law enforcement, and other specialized fields.

Yiquan Gao

Published 2026-03-03
📖 6 min read🧠 Deep dive

Imagine you are a detective trying to find a specific person in a crowded, messy room. That person is wearing a very specific badge (the license plate), but the room is dark, filled with fog, and cluttered with other people wearing similar-looking badges. Your job is to isolate that one person and hand them over to the police.

This paper by Gao Yiquan is essentially a guide on how to build a digital detective that can find a car's license plate in a photo, even when the photo is messy, dark, or blurry.

Here is the step-by-step process of how this digital detective works, explained with simple analogies:

1. The Mission: Why do we need this?

In Malaysia, there are more cars than ever before. We need a system to automatically read license plates to:

  • Charge people for parking or highway tolls automatically.
  • Help police catch stolen cars.
  • Catch speeders.

The paper focuses on the first step: finding the plate in the picture. Once found, other systems can read the letters.

2. The Problem: The "Messy Room"

The author explains that raw photos are terrible for computers to read because of four main issues:

  • Bad Lighting (The Histogram Problem): Imagine a photo where the background is too bright and the car is too dark. The computer gets confused. It's like trying to read a sign in a room where the lights are flickering.
  • Noise (The Static): Just like an old TV with static, photos have "noise"—tiny specks of color that aren't part of the car. This distracts the computer.
  • Clutter: The car is surrounded by trees, other cars, and buildings. The computer needs to ignore all that junk.
  • Broken Pieces: When the computer tries to find the edges of the plate, the lines look like broken puzzle pieces scattered everywhere, not a solid rectangle.

3. The Solution: The 7-Step Detective Process

The author proposes a recipe to clean up the photo and find the plate. Think of it as a kitchen where you are preparing a dish (the clean image) from raw ingredients (the messy photo).

Step 1: Turn Off the Color (RGB to Grayscale)

The Analogy: Imagine you are looking at a colorful painting, but you only care about the shape of the objects, not the colors.
What happens: The computer throws away all the colors (Red, Green, Blue) and turns the image into black and white (8-bit). This makes the math much easier and faster, like switching from a high-definition movie to a simple sketch.

Step 2: Balance the Lights (Equalization)

The Analogy: Imagine a room where one corner is pitch black and the other is blindingly bright. You turn on a dimmer switch to make the whole room evenly lit.
What happens: The computer adjusts the brightness so that the dark parts get lighter and the light parts get darker, but the contrast remains. This makes the license plate stand out clearly against the background.

Step 3: Smooth the Rough Edges (Blur Filter)

The Analogy: Imagine looking at a photo through a slightly foggy window. It blurs out the tiny dust specks (noise) but keeps the big shapes (the car) clear.
What happens: The computer averages out the pixels to smooth out the "static" and noise, removing the tiny distractions so the computer can focus on the big picture.

Step 4: Find the Outlines (Edge Detection)

The Analogy: Imagine an artist tracing the outline of an object with a marker. They ignore the inside of the object and only draw the border.
What happens: The computer scans the image to find where colors change sharply. Since a license plate has a sharp border, the computer draws a line around it, ignoring the smooth parts of the car body.

Step 5: Connect the Dots (Dilation)

The Analogy: Imagine you have a broken chain where the links are slightly apart. You push them together until they snap into a solid chain.
What happens: The "edge detection" step often leaves the outline of the plate looking like a dotted line. The computer "grows" these dots so they touch each other, turning the broken lines into solid, complete blocks.

Step 6: Separate the Guests (Segmentation)

The Analogy: Imagine a party where everyone is standing in a big group. You put a name tag on every distinct group so you can talk to them individually.
What happens: The computer identifies every separate block it found (the car, the plate, a tree, a sign) and labels them as individual "objects." Now the computer can look at them one by one instead of as one giant mess.

Step 7: The Final Filter (Noise Removal)

The Analogy: You have a basket of fruit, but you only want apples. Some other fruits look a bit like apples (maybe a red tomato). You use a special rule: "If it's the right size, shape, and ratio, keep it. If it's a tomato, throw it away."
What happens: The computer checks every block it found. It looks for specific clues:

  • Is it the right size?
  • Is it the right shape (long and rectangular)?
  • Does it have the right color contrast?
  • The Twist: The author realized that sometimes a car logo looks exactly like a license plate. So, they created a new, smarter rule that combines size and area to trick-proof the system, ensuring only the real plate survives.

4. The Result: The "Aha!" Moment

After all these steps, the computer has successfully cut the license plate out of the original photo. It is now a clean, isolated rectangle ready to be read by a machine.

5. The Catch: It's Not Perfect

The author admits that if the camera is in a place with terrible lighting (too dark or too bright) or if it's foggy/rainy, the system might struggle.

  • The Fix: The camera needs to be placed in a spot with good, steady light and protected from the weather.
  • The Fine-Tuning: The "magic numbers" (thresholds) the computer uses to decide what is a plate and what is noise need to be set perfectly. If they are set wrong, the computer might cut off half the plate or include a tree branch.

Summary

This paper is a blueprint for teaching a computer to be a smart filter. It takes a messy, colorful, noisy photo and, through a series of logical steps (simplifying, balancing, smoothing, outlining, and filtering), extracts just the license plate. This technology helps police catch bad guys, keeps traffic flowing, and makes parking payments automatic.