Pothole Patrol
AI + Vision = Zero Potholes.
The problem Pothole Patrol solves
🚧 The Problem It Solves
Potholes are an even greater issue, particularly in the rural locations where road maintenance is a process that is slow and sloppy. They are one of the biggest reasons of crashes, broken rides, traffic jams, and even serious injuries. Normally, local governments receive the reports manually thereby dragging everything down and rendering safety somewhat obsolete.
✅ How Pothole Patrol Helps
Road safety enhancing the safety of roads and simplifying the process of reporting: Potholes Patrol is smart:
🔹 1. Real‑time Pothole Detection
It picks up potholes as you drive your car--you do not even have to check a manual. It vibrates the driver when it perceives a dent on the path some 10 meters ahead, that way he can reach the brakes and avoid an accident.
🔹 2. Automatic Server Reporting.
Every detected pothole is:
📍 GPS coordinates
🖼️ Snapped photos
🌐 Auto‑uploaded online
In such a manner, government people can observe what is not right and resolve which one to address initially.
🔹 3. Web based Reporting Manually.
The site allows users to send potholes complaints by posting up:
Location
Image of the pothole
Description (optional)
Super cool since anyone is allowed to report a pothole regardless of the absence of any gadget.
🔹 4. Improved Villages and City Maintenance.
The locations that do not receive the significant amounts of manpower or technology will benefit the most. Having a live map view allows the officials to be quick and reduce the fix time.
🌟 Why It Matters
Improves road safety
Reduces car damage
helps city councils are in charge of putting roads in a shape.
Empowers the citizens to make their contribution to fixing the roads.
Tries to bring countryside on board with smart-city technology.
Challenges I ran into
🚧 Difficulties that I had experienced and how I managed to overcome them.
- Same Image Appearing Everywhere Image Upload Bug.
Challenge:
Initially, all the pothole points completely gazed at the same place holder (sample.png), despite having shot a dozen or more photos. Apparently, the API was stuck with one hardcoded file name on which to save photographed images.
Solution:
My naming structure was redesigned.
Every upload has a unique file and, therefore, every pin would really display its own photo.
- Flask Codes Writing with Static File Not Loading
faulty.
Challenge:
The pictures disappeared on the map as the static folder was directing the incorrect directory, accessing 404s to the right and the left.
Solution:
I transferred all to the location of the uploads under the directory of static and modified the API JSON
- Overlapping (Too Many Points Nearby) Map Markers.
Challenge:
Every pothole surrounding Amity University was pulsed together and the map had the appearance of an art glitch.
Solution:
I sprinkled Leaflet MarkerCluster into it; the points within the same radius are clustered and a bubble of the number is shown. The map immediately appears more organized and more professional.
- The errors in sensor data simulation are explained and described below.<|human|>Errors in Sensor Data Simulation are explained and discussed below.
Challenge:
Whenever the Flask server went down, the auto-simulation script would crash with the error message; *WinError 10061: Connection refused.
Solution:
I included re-try routines and out-of-favor console statements (retry until successful) hence keeping the simulation alive and the debugging easy.
- Post Tag Latitude/Longitude or Out-of-Road Points
where the Post Tag Latitude and Longitude are incorrect.<|human|>Incorrect Latitude/Longitude or Out-of-Road Points where the Post Tag Longitude, Latitude is incorrect.
Challenge:
Even away out of India the randomly thrown points were occasionally off the road–or even off the surface.
Solution:
I manually refined the generation of the coordinates of college roads, and botched in geo--filtering to maintain points on actual road segments.
- Slow or Incinerated search suggestions
.
Challenge:
It was a real pain that the search bar continued giving global results then local results.
Solution:
I gave more emphasis to India based locations and made a custom ranking. Now Indian names are coming to the surface.
- Zoom Map Decimation to Reset of Map corners, Causing animation error in upper left corner of frame. Map Reset Caused by Animation Zoom Animation, Upper left frame corner animation error.
Challenge:
An expansion of a cluster would suddenly rearrange the map and leave it disorienting.
Solution:
Added the smooth zoom feature using map.flyTo(latlng, 18, { duration:1.2 });. The transition is smooth and easy to use.
- Database Corruption Error
Challenge:
SQLite election threw database disk image is malformed.
Solution:
I wiped and recreated a new database by using the method of init_db(). Now everything is all running well.