Using Raspberry pi
Components Required: Raspberry pi, ESP32 Rpi Camera Module, Ultrasonic Sensors, Servo Motors,
To check camera module in Raspberry pi, simpily connect the camera module to the raspberry pi and open terminal. Type "raspistill -o name_of_the_image.jpg" and run.
Here we use the OpenCV library to detect and recognize number plates, and the Tesseract library is used to read the characters. So before proceeding further, first install the OpenCV, Tesseract, and other required libraries. We previously used OpenCV in Face Recognition using the Raspberry Pi project.
Here OpenCV library is used to detect and recognize faces. To install the OpenCV, first, update the Raspberry Pi.
Then use the following commands to install the required dependencies for installing OpenCV on your Raspberry Pi.
After that, use the below command to install the OpenCV on your Raspberry Pi.
To install the Tesseract, first, configure the Debian Package (dpkg) using the below command:
After that, install the Tesseract OCR (Optical Character Recognition) using the apt-get option.
After that, install the pytesseract using the pip.
After this, install the PYTTSX3 library for text to speech conversion using the below command:
imutils is used to make essential image processing functions such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV. Use the below command to install the imutils:
SMTP (Simple Mail Transfer Protocol) is the standard protocol for providing email services on a TCP/IP network. This server provides the ability to receive and send email messages. We are using SMTP to send a mail when the Raspberry Pi detects and recognizes a license plate.
To use the SMTP services on Raspberry Pi, we first have to install the SMTP library on Pi. Use the below command to install the same:
Now we have to edit the configure file. For that, open Configuration file using the below command:
A new window opens up and add the below lines there. Don’t forget to add your email and email password. After writting use keyboard's shift^O to save the below data in 'ssmtp.conf' file