Skip to content

Syed8558/construction-safety-yolov10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦺Construction Site Safety Detection using YOLOv10

This project implements a real-time computer vision system using YOLOv10 (CNN-based object detection) to monitor construction site safety compliance. It detects whether workers are wearing safety helmets and safety vests and identifies safety violations from live CCTV or webcam video.

This is an industry-grade AI solution used in smart cities, construction companies, and industrial safety monitoring.

πŸš€ Business Problem

Construction sites are one of the most dangerous workplaces. Accidents occur due to:

Workers not wearing helmets

Missing safety vests

Lack of real-time monitoring

Manual supervision is slow and unreliable. This system provides automatic, real-time safety monitoring.

🧠 AI Solution

A YOLOv10 deep learning model is trained to detect:

Person

Helmet

No-Helmet

Safety Vest

The system:

Reads live video

Detects PPE compliance

Highlights violations instantly

πŸ“Š Dataset

This project uses a real construction-site dataset from Kaggle:

Safety Helmet & Vest Detection Dataset https://www.kaggle.com/datasets/andrewmvd/helmet-detection

The dataset contains thousands of labeled images with bounding boxes for helmet, vest, and people.

⚠️ Dataset is not included in this repository due to size.

πŸ” End-to-End Pipeline Dataset β†’ YOLOv10 Training β†’ Model Evaluation β†’ Model Export β†’ Live Detection β†’ API

πŸ“ Project Structure construction-safety-yolov10/ β”‚ β”œβ”€β”€ data/ # Dataset (not uploaded) β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ train.py β”‚ β”œβ”€β”€ evaluate.py β”‚ └── detect.py β”‚ β”œβ”€β”€ api/ β”‚ └── app.py # FastAPI for live detection β”‚ β”œβ”€β”€ models/ β”‚ └── best.pt # Trained YOLOv10 model β”‚ β”œβ”€β”€ requirements.txt β”œβ”€β”€ .gitignore └── README.md

βš™οΈ Installation pip install -r requirements.txt

πŸ‹οΈ Train YOLOv10 from ultralytics import YOLO

model = YOLO("yolov10n.pt") model.train(data="safety.yaml", epochs=50, imgsz=640)

πŸŽ₯ Real-Time Detection from ultralytics import YOLO

model = YOLO("models/best.pt") model.predict(source=0, show=True)

This runs live webcam detection.

🌐 API for CCTV uvicorn api.app:app --reload

Open:

http://127.0.0.1:8000/docs

πŸ›  Tech Stack

Python

YOLOv10

OpenCV

PyTorch

FastAPI

CNN

πŸ’Ό Why This Project Matters

This project demonstrates:

Deep learning with CNN

Object detection

Real-time video AI

Industrial safety use case

Production-style deployment

This is not a toy project β€” it is a real industry solution.

πŸ‘¨β€πŸ’» Author

Syed Sadath G Machine Learning Engineer | Computer Vision | Deep Learning

About

Real-time construction site safety monitoring system using YOLOv10 to detect helmets, safety vests, and PPE violations from live video. Built with Python, OpenCV, and deep learning for industrial safety and smart city applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors