Number Plate Detection using Open CV and Machine Learning (TensorFlow). Live Video is processed using filters which makes this model more accurate results and the data of the vehicles are automatically updated in the Excel sheet.
We can use this model in identification of vehicles and maintaining their data base with time stamp.
https://www.kaggle.com/datasets/andrewmvd/car-plate-detection
Firstly live video is captured Then some filters are applied for better detection and noise reduction
Like - at first it is converted into greyscale and then into outline filter for better recognition of shapes which then filtered as rectangle shapes As numberplates are also in rectangular shapes, so identification becomes eassier.
Model is trained using the dataset which contains images of some random car showing numberplate and each image carry an seperate file which contains coordinates of numberplate in the image.
The live video captured is then send to the model to predict the location of numberplate Then EasyOCR is used to get the characters from the numberplate.
Every numberplate detected is stored in a file and the data of vehicle gets updated in the csv file.
Language --> Python=3.8 IDLE --> Jupyter Notebook Operating System --> Windows 11 Camera for live detection
-
cv2 install using - pip install opencv-python import using - import cv2
-
pyqt5 (for Image Labelling) install using - pip install --upgrade pyqt5 lxml import using - "import in labelling"
-
os install using - "Usually pre-installed with python" import using - import os
-
wget install using - pip install wget import using - import wget
-
tensorflow "Please check the version if error occurs" install using - pip install tensorflow==2.4.1 --upgrade import using - import tensorflow as tf
-
protobuf and matplotlib "Upgrade" install using - pip install protobuf==3.19 matplotlib==3.2 import using - from matplotlib import pyplot as plt
-
object detection install using - pip install object_detection import using - import object_detection
-
easyocr install using - pip install easyocr import using - import easyocr
-
uuid install using - pip install uuid import using - import uuid
-
numpy install using - pip install numpy import using - import numpy as np