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

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.
16 stars 3 forks source link
21csl66 cg computer-graphics computer-graphics-and-image-processing-laboratory image-processing mini mini-project vtu

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:

Troubleshooting


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