Inspiration
When a storm hits Houston, a single downed line or flooded transformer can leave thousands of people without power, and crews can only fix what they can find. Right now, finding it often means driving the grid or manually reviewing aerial footage. We wanted to see what happens when a drone photo can be read the way an experienced lineman would read it, and then ranked so the most dangerous problem gets a crew first.
What it does
Upload drone images or uses a live drone footage and the system tells you what it sees and what to do about it.
- Reads each image with computer vision and flags hazards: downed power lines, trees on or near lines, flooding near equipment, damaged poles and transformers, vegetation encroachment, fire or smoke, and debris on lines.
- Ranks every issue with a 0-100 priority score and a label (Critical, High, Medium, Low), plus a plain-English explanation of why it scored that way, so a dispatcher can trust it and challenge it.
- Dispatch queue: unresolved images are ordered by priority, so the first one in the list is where to send a crew first.
- Interactive map: every image is pinned to where it was taken (from the photo's GPS data, or placed manually).
- Search and filters: look up a specific problem type, such as "unresolved flooding near equipment," and see only the images where that problem still hasn't been fixed.
- Resolution tracking: crews mark each issue Open, In Progress, or Resolved, and the map and queue update right away.
How we built it
- Backend: Python, FastAPI, and SQLite. Uploads are saved and analyzed in the background so the app stays fast.
- Vision: Custom vision model reads each image and returns structured JSON (issue type, severity, confidence, recommended action), which we validate before storing.
- Scoring: the final priority score is calculated in our own code, not by the model. It combines issue-type weights, the model's severity and confidence, and a bonus when hazards stack (for example, flooding plus a downed line). That makes the ranking consistent and explainable.
- Frontend: Next.js, TypeScript, and Tailwind, with a Leaflet map for locations, marker clustering, and live-updating queues.
- Location: GPS coordinates and capture time are read from each photo's EXIF data, with a manual override for images that have none.
Challenges we ran into
- Trusting the AI: we told the model to report only what is visibly supported and to lower its confidence when unsure, and we handle "no issues found" as a valid result rather than forcing a finding.
- Ranking fairly: letting the model pick the final priority would have made results inconsistent, so scoring runs in deterministic code that we can test and explain.
- Building in parallel: one teammate built the backend while another built the frontend at the same time. We wrote an API contract first and built the frontend against a mock server, then swapped in the real backend.
- Edge cases: photos without GPS, failed analyses, and server restarts in the middle of an analysis all needed handling so the UI never gets stuck waiting.
What we learned
- How to get reliable, structured output from a vision model and keep the final decisions in testable code.
- How a shared API contract lets two people build one product at the same time.
Built With
- claude
- fastapi
- git
- leaflet.js
- next.js
- pytest
- python
- qlalchemy
- react
- sqlite
- tailwindcss
- typescript