Object detection system developed with deep learning techniques, capable to recognize if workers in construction areas are using their safety helmet in mandatory areas. The next objective it's to detect not only the helmets but also the people who puntually are unprotected, creating a warning.
Safety Helmet will be an integrated part of a dedicated ecosystem for secure safety habits on working dangerous areas, focusing on the scalability of the detection system trying to make it capable of covering the most scenarios posibles.
This project also haves a Colab repository for online testing at Colab page.
The dataset consist of 5000 images /data/images
with annotations /data/labels
, then divided on training and test subgroups.
Note
I used a converter /tools/coverter.py
to addapt the previous labels format (.xml) to an accepted one (.txt), read script documentation before using
See full dataset documentation on this link.
Consist of a traditional YoloV8 training with a pretrained model, we apply a fine tunning for helmet detection using our custom dataset
from ultralytics import YOLO
model = YOLO("yolov8n.pt")
model.train(data="data.yaml", epochs=10)
result = model.val()
path = model.export(format="onnx")
We recieve our trained model at /runs/detect/train6/weights/best.pt
with some metrics for training analysis.
If you want to colaborate on this project, you are invited to create a Pull Request with a descriptive text of the changes/updates.
You can also contact me: jomarkow@gmail.com
We hope you liked the project, if so, I invite you to leave a star ⭐, thanks for read :).