https://pabcal.github.io/accidentDetection-webpage/
This project includes a FastAPI backend and a simple HTML/JS frontend.
Windows (PowerShell):
python -m venv .venv .venv\Scripts\Activate
pip install -r backend/requirements.txt
cd backend
uvicorn main:app --reload --host 127.0.0.1 --port 8000Backend will be available at http://127.0.0.1:8000.
Option A: Open frontend/index.html directly in your browser.
Option B: Serve it locally:
cd ../frontend
python -m http.server 8080
# Open http://localhost:8080- Upload a video file. The backend processes it and returns frames with detections.
- Ensure the backend is running before opening the frontend.
- If you use an external AI service (e.g., Roboflow), configure the API key as required by
backend/main.py. - Supported video formats typically include MP4, AVI, and MOV.