TrueSight is an AI-powered computer vision system designed to detect safety equipment in images.
It uses a custom-trained YOLOv8s model, a FastAPI backend, and a beautiful React web interface.
This project was built for the HackBeyond Hackathon 2025.
- ✔ Detect 7 safety equipment classes
- ✔ Real-time image upload & prediction
- ✔ Annotated image returned (Base64)
- ✔ MERN-style frontend (React + API backend)
- ✔ Fully Dockerized backend for smooth deployment
- ✔ mAP50 score: 0.78
- ✔ Simple & fast REST API for integration
- Oxygen Tank
- Nitrogen Tank
- First Aid Box
- Fire Alarm
- Safety Switch Panel
- Emergency Phone
- Fire Extinguisher
| Metric | Value |
|---|---|
| Epochs | 50 |
| mAP50 | 0.787 |
| mAP50-95 | 0.661 |
| Precision | 0.90 |
| Recall | 0.72 |
We use:
0.25 (25%)
To eliminate low-confidence predictions and reduce false positives.
TrueSight/
│
├── backend/
│ ├── server.py
│ ├── Dockerfile
│ ├── requirements.txt
│ ├── models/
│ │ └── best.pt
│ └── utils/
│
└── frontend/
├── src/
│ ├── App.jsx
│ └── styles.css
├── public/
└── package.json
Upload an image → get back annotated image + detections.
POST /predict
Content-Type: multipart/form-data
file: image.jpg
conf: 0.25
cd backend
pip install -r requirements.txt.\.venv\Scripts\Activate
python -m uvicorn server:app --host 0.0.0.0 --port 8000 --workers 1cd frontend
npm installnpm start| Submission Item | Status |
|---|---|
| Model trained | ✔ Done |
| mAP50 score | 0.78 |
| best.pt | ✔ Provided |
| Working web app | ✔ Deployed |
| GitHub repository | ✔ Public |
| Slides / PPT | ✔ Attached |
| Demo video (optional) | Pending |
- Ultralytics YOLOv8
- FastAPI Community
- ReactJS Community
- HackBeyond Hackathon
Give the repo a star ⭐ on GitHub!