an abstract photo of a curved building with a blue sky in the background

Alps-gate-pi

Automatic License Plate Recognition + gate control on Raspberry Pi

Overview

Automatic License Plate Recognition + gate control on Raspberry Pi — captures license plates via camera and triggers a GPIO relay to open a gate.

Details

A fully automated gate that opens when a recognized license plate approaches, leveraging OpenCV on a Raspberry Pi for OCR and an Arduino-controlled actuator for the gate. This project was completed as part of the Software for Embedded Systems.

For the hardware, I am using a Raspberry Pi 4B with 8GB RAM, which is fast enough for YOLO on CPU, and extra RAM keeps the swap off. Also, in this project, I used Arduino UNO(R3), which isolates a 5V I/O and provides logic power. However, I found out that for the servo, it needs its own 5V adapter, making it easy to add more or, in case of not needing scalability, the breadboard can be connected directly to the Pi. For the camera, I am using a smartphone camera using the IP Webcam app with a resolution streaming of 640 x 480 with a 15-fps setting over TCP to lower the load on the Pi CPU. more details on the documentation ( GitHub link provided below)

Resources & Links

Docker Image

GitHub Repository