How ivan-widjanarko/potholes-detection-phd- works
This repository contains the Raspberry Pi detection runtime and a Flask cloud API backed by Cloud SQL; the Android client described in the README is not present in the tree. The documented journey is to connect the app to the Pi, start and stop a drive, review detections, and submit reports. The Pi polls device status, captures and classifies frames, uploads report images to Cloud Storage, then posts report metadata to the API. Source excerpts show the Pi module calls and API/database operations; Android-side wiring and some deployment integrations are documented but not implemented here.
Main entry points: Raspberry App/main.py Drive Runtime · main.py Flask API · upload.py Image Upload · utils.py Frame Cropping
Components 10
Mobile App
- Android Client
Raspberry Pi
- Drive Runtime
Raspberry App/main.py - Pi Camera
- Frame Cropping
Raspberry App/utils.py - TFLite Detector
Raspberry App/detector.py - Image Upload
Raspberry App/upload.py
Cloud Backend
- Flask API
main.py - Cloud SQL
Cloud Storage
- Cloud Storage
Other components
- Driver
Connections 12
- Driver → Android Client: controls drive
README.md - Android Client → Drive Runtime: starts and stops
README.md - Driver → Android Client: reviews detections
README.md - Android Client → Flask API: submits reports
README.md - Drive Runtime → Pi Camera: captures frames
- Drive Runtime → Frame Cropping: preprocesses frames
Raspberry App/main.py - Drive Runtime → TFLite Detector: runs inference
Raspberry App/main.py - Drive Runtime → Flask API: polls status
Raspberry App/main.py - Drive Runtime → Image Upload: uploads report image
Raspberry App/main.py - Image Upload → Cloud Storage: stores image
Raspberry App/upload.py - Drive Runtime → Flask API: posts report metadata
Raspberry App/main.py - Flask API → Cloud SQL: reads and writes
main.py