Git Product home page Git Product logo

helmet_detection's Introduction

HELMET_DETECTION

TEAM DIJON

Project Helmet Detection is a project to detect riders on two wheelers without the helmet. This project is divided into different sections

OPTIONAL Sometimes the code may not run due to the difference in versions so kindly install the version we have given in the requirements.txt


First Section The first part is getting the dataset. We team dijon downloaded dataset from kaggle.The dataset has images and its annotations which is in xml file Our Train_XML file reads xml file and crops the images into two categories with helmet and non helmet Then it is given as input to mobileNet model and training is done

NOTE: TO RUN THE CODE. DOWNLOAD THE DATASET FROM HERE https://www.kaggle.com/andrewmvd/helmet-detection AND PUT 'images' folder and 'annotations' folder in same directory where Train_XMLfile.py is kept.


Second Section Now after the dataset is downloaded and trained helmet.h5 will be our trained model. A trained model is already provided in this repository.I have used 50 epochs with batchsize of 35.

If you want to see a demo run of helmet detection run the Project_Helmet_Dijon.py Make sure to keep the haarcascade_upperbody.xml and test.mp4 in the same directory

If you want to see demo from your webcam then run webcam_helmet_detect.py Make sure to keep the res10_300x300_ssd_iter_140000.caffemodel and deploy.prototxt.txt in same directory. These are used to detect face and feed the image to model that predicts the probability of wearing helmet.

helmet_detection's People

Contributors

swodesh-2001 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.