N° 03 | Case study · First prize
Smart parking, built in ten days.
A low-cost, decentralised system that spots free parking in real time and shows drivers the nearest open lots. It won first prize at the Smart City Hackathon, Bengaluru.
- Event
- Smart City Hackathon, BEIC · Amrita Vishwa Vidyapeetham × Honeywell
- Result
- First prize · 2022
- Team
- Four engineers, NIT Trichy
- My role
- Web app, server and cloud database
- Idea to working system
- 10 days
- Camera refresh
- ~2 s
- Car lot, field-tested
- 30+
- Nearest lots, live
- 10
Drivers circle. Streets clog. Nobody knows where the free spots are.
In Indian cities, finding parking burns time and fuel, and drivers circling for a spot add to the congestion and pollution. It gets worse at festival time, when cars end up squeezed into narrow roads.
Most smart-parking systems watch a large lot with a few expensive cameras and one central computer. That doesn't fit roadside parking, the most used parking space in India, and one failure takes the whole lot offline.
The approach
(02) Three principlesCheap at the edge
Many low-cost ESP32 camera modules instead of a few expensive cameras, so coverage grows without the budget exploding.
Decentralised by design
Each node is one Raspberry Pi and its own set of cameras. If a node fails, only that node goes dark. Adding a lot means adding a node.
Free and open to everyone
A responsive web app instead of a native app: no install, works on any phone, and free for the public to use.
How it works
(03) Architecture- 01 · Capture
ESP32-CAM modules
Low-cost cameras grab a frame about every two seconds and send it over the local network.
- ESP32-CAM
- TCP
- Arduino
- 02 · Edge node
Raspberry Pi 4B
Rebuilds each frame, detects vehicles and works out which slots are free.
- Python
- OpenCV
- MobileNet SSD
- 03 · CloudMy part
MongoDB in the cloud
Holds the live count of free and taken slots for every lot. No images, just numbers.
- MongoDB
- pyMongo
- 04 · ServerMy part
Node.js + Express
Reads lot data, asks Google for real driving distances and ranks the nearest lots.
- Node.js
- Express
- Distance Matrix
- 05 · Web appMy part
Public web app
Shows the 10 nearest lots with live availability, then hands off to Google Maps for directions.
- HTML/CSS
- Geolocation
- Maps JS
Frames flow left to right · each node runs on its own · the cloud holds only slot counts
Problems we solved
(04) Field log- P.01
A camera frame is too big for one network send.
The ESP32 splits each frame into chunks and sends them one by one. The Pi reassembles the bytes and saves a proper JPEG before detection runs.
- P.02
One pipeline has to serve many cameras and lots.
Every frame is named by camera, city, lot and time, so a single detection loop knows exactly where each image came from. Processed frames are deleted so nothing is counted twice.
- P.03
Turning "there are cars in this picture" into "slot 7 is free".
We marked each parking slot once by hand, then compared it with every detected vehicle box. Enough overlap means taken; no overlap means free.
- P.04
Hardware in a car park will lose power. It has to recover alone.
Scripts start on boot and cameras reconnect to the server automatically. In testing, resets and reboots needed no manual fix.
- P.05● Mine
Drivers need the closest free spot, not a list of every lot in the city.
The web app finds you (or a destination you search), asks Google for real driving distances, ranks the 10 nearest lots with live availability, and opens directions in one tap. Two modes: near me, or near where I am going.
Tested on a real lot, not a slide.
We set it up at a 30+ car lot at Kamala Cinemas, Chennai: two cameras mounted diagonally, one on a pole and one on a wall, linked over a mobile router. Frames came in every two seconds, cars were detected, and occupancy reached the cloud database.
Then we pulled the plug. Reset cameras reconnected on their own, and a rebooted Pi was back on the network and updating the cloud without anyone touching it.
If I built it today
(06) Next stepsThe front end was a ten-day hackathon prototype, and the system worked because the architecture was sound. Here's where I'd take it now.
A real-time map
Push slot changes live over WebSockets instead of refreshing, with in-app navigation.
A designed front end
A proper mobile-first interface, designed and built with the care the hackathon timeline didn't allow.
A native app
Saved destinations, notifications when a nearby slot frees up, and offline-friendly maps.
Violation detection
Flag cars parked outside marked slots and warn the operator.
Wider-angle cameras
Wider lenses so each camera covers more slots, cutting hardware per lot.
Over-the-air updates
Update camera firmware remotely instead of reflashing each one by hand.