Coder Social home page Coder Social logo

serendipity0321 / yolov3-helmet-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blcakhat/yolov3-helmet-detection

0.0 0.0 0.0 244 KB

Training a YOLOv3 model to detect the presence of helmet for intrusion or traffic monitoring.

License: GNU General Public License v3.0

Python 100.00%

yolov3-helmet-detection's Introduction

Helmet Detection using YOLOV3

Its a simple YOLO model to detect and count the number of people wearing helmet in a image. this model can be used to detect the intrusion or to find the people ridding bike without helmet.

Here you can read my post in detail https://medium.com/@vijaysingh_60587/train-your-own-custom-model-for-helmet-detection-object-detection-using-yolo-f53a48066d7a

Getting Started

This code is very simple and with the help of little manipulation, you can count the number of detection for a particular detection.

or extract the co-ordinates of bounding boxes. download the models, create necessary files and give full path to the models and folder names and run the python script.

training:

if you want to train your own model, follow the darknet. Prerequisites
install python3.
install pip3.
install opencv.( sudo pip3 install opencv-python ).

install other liberaries if missing.

After setting up the paths.
change the path of classfile in line 19,
change the path of configuration file in line 25,
change the path of weights in line 26
change the output folder name in line 133 where you want to keep your output files.
change the name of folder in line 150 for input images.
, it's ready to run.
open terminal and python3 Helmet_detection_YOLOV3.py

link to files.

model
cfg
obj.names
If everything went well. you will get results like this
img1
img2
img3

yolov3-helmet-detection's People

Contributors

blcakhat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.