Monday, November 4, 2024

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages

Smart Number Plate Recognition System For Car Parking Lot

Managing the entry and exit of cars in parking lots is a difficult job. It becomes even more complicated when one wishes to keep track of them using details such as date, time and number plate. Often a dedicated staff is required who can check these details and do data entry.

- Advertisement -

So today we will make a concept project that will automate the whole process involved in managing a car parking lot by recognising the car number plate, capturing its image, extracting the number from the licence plate and saving them into a database.

- Advertisement -

Bill of Materials

Let’s start the project by collecting the following components:

Prerequisite 

First we need to install some Python modules that will help in capturing images using a camera, process them and extract the licence plate number. To do so, open the lxterminal and run the following commands.

sudo apt-get install pytesseract

sudo pip3 install opencv2

Sudo Pip3 install numpy

Coding 

Open the Python IDE and import the following required libraries in the code: 

  • Datetime
  • Numpy
  • Pytesseract

After this, create a while loop in which the captured video is converted into frames and then resized into smaller sizes for faster processing. Next, convert the images into grayscale as this will help in recognising the car number plate and easily extract the text from the image. 

Then call the Pytesseract to recognise the number from the number plate after which save the date, time and the identified number of a car number plate in a text file. Also save the picture of the car in the folder named car number plate.

Testing

After finishing coding and saving it, connect the camera to the Raspberry Pi cam port using a ribbon cable. Run the code and bring an image of a car number plate in front of it. The camera will automatically capture the image, recognise it and save it in text format with date and time.

Download Source Code

Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Electronics News

Truly Innovative Electronics

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics