Automatic Number Plate Recognition (ANPR) Secrets Revealed [Part1]

Written by nobody1234 | Published 2021/05/25
Tech Story Tags: technology | cars | licensing | machine-learning | ai-ocr | ocr-machine-learning | license-plate-recognition | hackernoon-top-story | web-monetization

TLDR LPR (License Plate Recognition) is an image-processing technology used to identify vehicles by their license plates. The technology concept assumes that all vehicles already have the identity displayed (the plate!) so no additional transmitter or responder is required to be installed on the car. LPR units are based on images of the front and/or rear plates. This data is used for enforcement, data collection, and (as in the access-control system featured above) can be used to open a gate if the car is authorized.via the TL;DR App

This article provides an overview of LPR systems. The description starts ‘technical’ then proceeds to the ‘market’ view.
Contents:
  • What is LPR?
  • Technology Highlights
  • Other Names
  • Plates and Images
  • What’s in an image
  • Does it work?
  • Elements of typical LPR systems
  • How does it Work?
  • Typical applications
1. What is LPR?
LPR (License Plate Recognition) is an image-processing technology used to identify vehicles by their license plates. This technology is used in various security and traffic applications, such as the access-control system featured in the following animation:
In the above example: while the vehicle approaches the gate, the LPR unit automatically “reads” the license plate registration number, compares to a predefined list, and opens the gate if there is a match.
2. Technology Highlights:
This technology is gaining popularity in security and traffic installations. The technology concept assumes that all vehicles already have the identity displayed (the plate!) so no additional transmitter or responder is required to be installed on the car.
The system uses illumination (such as Infra-red) and a camera to take the image of the front or rear of the vehicle, then an image-processing software analyzes the images and extracts the plate information. This data is used for enforcement, data collection, and (as in the access-control system featured above) can be used to open a gate if the car is authorized or keep a time record on the entry or exit for automatic payment calculations.
The LPR system’s significant advantage is that the system can keep an image record of the vehicle which is useful in order to fight crime and fraud (“an image is worth a thousand words”). An additional camera can focus on the driver’s face and save the image for security reasons. Additionally, this technology does not need any installation per car (such as in all the other technologies that require a transmitter added on each car or carried by the driver).
3. Other Names
LPR is also called in different references as:
  • Automatic Vehicle Identification (AVI)
  • Car Plate Recognition (CPR)
  • Automatic Number Plate Recognition (ANPR)
  • Car Plate Reader (CPR)
  • Optical Character Recognition (OCR) for Cars
4. Plate and images
LPR units are based on images of the front and/or rear plates.
The following example shows a typical installation of an access control system in the gate of a secured office compound.
The car, with the plate number: W856RKX, is just exiting from the secured area and is picked up by the LPR system which identifies it as an authorized car and opens the gate. A welcome display (which includes the vehicle number and driver name) is displayed in the large outdoor display in the back of the car.
A typical image captured by the Infra-red illumination and camera unit is shown in the following image (this image is of the same car above). The image information is read by the LPR unit and is analyzed and recognized automatically. Note that the image is monochrome since the infra-red spectrum is above the normal color spectrum.
Since the vehicle plates are based on different Country standards, they usually different in form, shape, and material. Therefore the LPR systems are Country specific and are adapted to the Country where they are installed and used (in the above case — a UK installation).
Some plates have additional information written or attached to the plate, such as state identification (as in USA plates in an upper smaller row), province initials (such as in China upper row), plate issue date label (such as in USA plates), vehicle type (such as in Korea in an upper row), Country flag (as in Europe on the left side), and more. For most applications, this additional information is not required (and is usually not identified due to the complexity, variation, quality, and resolution).
5. What’s in an image
The above image of the front side of the car, shown in a typical format, is composed of 256 grey levels ranging from black (grey level 0) to white (grey level 255). For a typical format, there are 768 X 288 pixels (PICture ELements), or about 0.2 Million elements. This vast amount of information is processed by the recognition software in order to automatically locate and read the plate.
The following image shows a zoom into the above image sample. The initial image starts from the raw data, then repeatedly zooms up (with factor x2) until the pixel level.
The computer processing needs to work on global information (the entire image) for detecting the plate, then zoom into the data in order to handle the small details and finally extract the registration data. The end result of the recognition process is a string (in the above case, “W859RKX”). This transformation of the image data into a result string is actually a very large compression of the original raw data (1:31600 !).
6. Does it Work?
Early LPR systems suffered from a low recognition rate, lower than required by practical systems. The external effects (sun and headlights, bad plates, a wide number of plate types), and the limited level of the recognition software and vision hardware yielded low-quality systems.
However, recent improvements in the software and hardware have made the LPR systems much more reliable and widespread. You can now find these systems in numerous installations and the number of systems is growing exponentially, efficiently automating more and more tasks in different market segments. In many cases, the LPR unit is added as a retrofit in addition to existing solutions, such as a magnetic card reader or ticket dispenser/reader, in order to add more functionality to the existing facility.
7. Elements of typical LPR systems
LPR systems normally consist of the following units:
  • Camera(s) — that take the images of the car (front or rear side)
  • Illumination — a controlled light that can brighten up the plate, and allow day and night operation. In most cases, the illumination is Infra-Red (IR) which is invisible to the driver.
  • Frame grabber — an interface board between the camera and the PC, allows the software to read the image information
  • Computer — normally a PC running Windows or Linux. It runs the LPR application which controls the system, reads the images, analyzes and identifies the plate, and interfaces with other applications and systems.
  • Software — the application and the recognition package. Usually, the recognition package is supplied as a DLL (Dynamic Link Library).
  • Hardware — various input/output boards used to interface the external world (such as control boards and networking boards)
  • Database — the events are recorded on a local database or transmitted over the network. The data includes the recognition results and (optionally) the vehicle or driver-face image file
The following illustration shows a typical configuration of an LPR system (for example, for 2-lanes-in and 2-lanes-out access control systems). The system (“SeeLane”) is a typical example of such a system.
The SeeLane application runs as a background Windows application in the PC (shown in the center), and interfaces to a set of SeeCarHead camera/illumination units (one for each vehicle) which are interfaced by the frame grabber. The application controls the sensors and controls via an I/O card that is connected thru a terminal block to the inputs and outputs.
The application displays the results and can also send them via serial communication and DDE messages to other application(s). It writes the information to the local database or to optional remote databases (via the network).
You can point on the items and the bottom text area will display a description.
For more information on this system, use the link below.
8. How does it Work?
The following example shows how a typical access-control system works. It follows the order of the animation above.
The vehicle approached the secured area and starts the cycle by stepping over a magnetic loop detector (which is the most popular vehicle sensor). The loop detector senses the car and its presence is signaled to the LPR unit.
The LPR unit activates the illumination (invisible Infra-red in most cases) and takes pictures of the front or rear plates from the LPR camera (shown at the left side of the gate). The images of the vehicle include the plate and the pixel information is read by the LPR unit’s image processing hardware (the frame grabber).
The LPR unit analyzes the image with different image processing software algorithms, enhances the image, detects the plate position, extracts the plate string, and identifies the fonts using special artificial intelligence methods (such as Neural Networks).
Most LPR units are based on an application running on PC under Windows. Other systems exist that do not require a PC (such as the stand-alone unit shown in this illustration).
The LPR unit checks if the vehicle appears on a predefined list of authorized cars, and if found — it signals to open the gate by activating its relay. The unit can also switch on a green “go-ahead” light or red “stop” light. The unit can also display a Welcome! message with personalized data.
The authorized vehicle enters the secured area. After passing the gate its detector closes the gate. Now the system waits for the next vehicle to approach the secured area. Other types of applications use the information retrieved from the image for different purposes. For example, to prepare a speed or red-light violation ticket. All rely on the automatic image understanding process performed by the LPR unit, which actually mimics the human mind.
9. Typical applications
LPR applications have a wide range of applications, which use the extracted plate number and optional images to create automated solutions for various problems. These include the following sample applications: Parking — the plate number is used to automatically enter pre-paid members and calculate parking fees for non-members (by comparing the exit and entry times). The optional driver face image can be used to prevent car hijacking.
In this example, a car is entering a car park in a busy shopping center. The car plate is recognized and stored. When the car will later exit (through the gate on the right side) the car plate will be read again. The driver will be charged for the duration of the parking. The gate will automatically open after payment — or if the vehicle has a monthly permit.
Access Control — a gate automatically opens for authorized members in a secured area, thus replacing or assisting the security guard. The events are logged on a database and could be used to search the history of events.
In this example, the gate has just been automatically raised for the authorized vehicle, after being recognized by the system. A large outdoor display greets the driver. The event (result, time, and image) is logged in the database.
Tolling — the car number is used to calculate the travel fee in a toll-road, or used to double-check the ticket.
In this installation, the plate is read when the vehicle enters the toll lane and presents a pass card. The information of the vehicle is retrieved from the database and compared against the pass information. In the case of fraud, the operator is notified.
Border Control — the car number is registered in the entry or exits to the Country and used to monitor the border crossings. It can short the border crossing turnaround time and cut short the typically long lines.
This installation covers the borders of the entire Country. Each vehicle is registered into a central database and linked to additional information such as passport data. This is used to track all border crossings. — the car number is registered in the entry or exits to the Country and used to monitor the border crossings. It can short the border crossing turnaround time and cut short the typically long lines.
This installation covers the borders of the entire Country. Each vehicle is registered into a central database and linked to additional information such as passport data. This is used to track all border crossings.
Stolen cars — a list of stolen cars or unpaid fines is used to alert on passing ‘hot’ cars. The ‘black list’ can be updated in real-time and provide an immediate alarm to the police force. The LPR system is deployed on the roadside and performs a real-time match between the passing cars and the list. When a match is found a siren or display is activated and the police officer is notified of the detected car and the reasons for stopping the car.Enforcement — the plate number is used to produce a violation fine on speed or red-light systems The manual process of preparing a violation fine is replaced by an automated process which reduces the overhead and turnaround time. The fines can be viewed and paid online.
The photo is an example of a speeding car caught by a traffic camera. The rear vehicle plate is automatically extracted from the scanned film image, replacing a tedious manual operation and the need to develop and print the violation. The data block on the top-right side is additional speeding information that is automatically extracted from the developed film and used to complete the fine notice and inserted into a database. The violators can pay the fine online and are presented with this photo as proof of the speeding information.
Traffic control — the vehicles can be directed to different lanes according to their entry permits (such as in University complex projects). The system effectively reduces traffic congestions and the number of attendants.
In this installation, the LPR-based system classifies the cars on a congested entrance into 3 types (authorized, known visitors, and unknown cars for inquiry) and guides them to the appropriate lane. This system reduced the long waiting lines and simplified the security officer's workload.
Marketing Tool — the car plates may be used to compile a list of frequent visitors for marketing purposes, or to build a traffic profile (such as the frequency of entry versus the hour or day).
Travel — A number of LPR units are installed in different locations in city routes and the passing vehicle plate numbers are matched between the points. The average speed and travel time between these points can be calculated and presented in order to monitor municipal traffic loads. Additionally, the average speed may be used to issue a speeding ticket.
In this example, the car is recognized at two points, and the violation shows the photos of both locations which were taken on bridges on top of the highway. The average speed of the car is calculated from both points and displayed if the speed passed a violation threshold, and optionally printed.
Airport Parking — In order to reduce ticket fraud or mistakes, the LPR unit is used to capture the plate number and image of the cars. The information may be used to calculate the parking time or provide proof of parking in case of a lost ticket — a typical problem in airport parking which have relatively long (and expensive) parking durations.
This photo shows the gate of the long-term airport parking. The car is recognized on entry and the data is later used to track the real entry time in case of a lost ticket.

Written by nobody1234 | Love to write, Software developer, freelancer, machine learning
Published by HackerNoon on 2021/05/25