Skip to content

This project simulates a Toll Collection and License Plate Recognition System using OpenGL, OpenCV, and Tesseract OCR. It visualizes vehicle movement through a toll booth, calculates toll charges by vehicle type, and recognizes license plates from images.

Notifications You must be signed in to change notification settings

Karthikg1908/Toll-Collection-and-License-Plate-Recognition-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation


Toll Collection System

This project demonstrates a toll collection system using OpenCV for image processing, Tesseract for OCR, and FreeGLUT for OpenGL rendering.

Step 1: Install Necessary Dependencies

Make sure you have the required libraries installed. Open a terminal and run the following commands:

sudo apt install build-essential cmake pkg-config
sudo apt install libopencv-dev
sudo apt install tesseract-ocr libtesseract-dev libleptonica-dev
sudo apt install freeglut3 freeglut3-dev
sudo apt install libglu1-mesa libglu1-mesa-dev mesa-common-dev
sudo apt install tesseract-ocr-eng

Step 2: Copy the Code

Save the following code as toll_collection.cpp:

// Add toll_collection.cpp C++ code here

Step 3: Compile the Program

Run the following command to compile the program:

g++ -o toll_collection toll_collection.cpp -lGL -lGLU -lglut `pkg-config --cflags --libs opencv4` -ltesseract -llept

Step 4: Run the Program

Execute the compiled program with:

./toll_collection

Step 5: Interact with the Program

Use the keyboard as described in the code comments:

  • Press 1-9 to add different types of vehicles.
  • Press Space Bar to start/stop the vehicle movement.
  • Press Enter to process an image for license plate detection.
  • Press i for instructions.
  • Press p for toll prices.
  • Press q to exit and show the total collected toll.

Troubleshooting

  • Missing Image: Ensure the image path provided in the code exists. If not, change the path to an existing image.
  • Compilation Errors: If you encounter any errors during compilation, ensure all dependencies are correctly installed, and paths are correctly set.

Check The Result

Starting Window

image

Home Page

image

Instructions Window

image

Vehicle Toll Prices

image

Vehicles Starting Point

image

Vehicle Movement

image

Total Amount Collected

image

Sample Number Plate 1

image

Number Plate Recognition

image

Sample Number Plate 2

image

Number Plate Recognition

image

About

This project simulates a Toll Collection and License Plate Recognition System using OpenGL, OpenCV, and Tesseract OCR. It visualizes vehicle movement through a toll booth, calculates toll charges by vehicle type, and recognizes license plates from images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages