Giter Club home page Giter Club logo

madahetooo / hatdetector Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 33 KB

This repository is to build a model that detects people, heads, and hardhats in images. Each image can contain multiple people, multiple heads and multiple hardhats. The solution will help build a safety app that will alert the user if there are workers in the field that do not comply with safety rules.

Python 11.30% Dockerfile 0.20% Jupyter Notebook 88.49%
machine-learning ai object-detection detects-people retinanet keras-retinanet safety safety-rules wheet-heads yolov3

hatdetector's Introduction

hatDetector

This repository is to build a model that detects people, heads, and hardhats in images. Each image can contain multiple people, multiple heads and multiple hardhats. The solution will help build a safety app that will alert the user if there are workers in the field that do not comply with safety rules. This Notebook is for Training Purpose of Keras RetinaNet. RetinaNet is very slow as compared to F-RCNN so I've kept epochs and steps per epoch small for fast commiting purpose.

Step-1 : Installing Keras-RetinaNet Step-2 : Let's look at the data Step-3 : EDA Step-4 : Visualizing images


What can we tell from visualizations:

there are plenty of overlappind bounding boxes all photos seem to be taken vertically all plants are can be rotated differently, there is no single orientation. this means that different flip and roration augmentations should probably help colors of wheet heads are quite different and seem to depend a little bit on the source wheet heads themselves are seen from very different angles of view relevant to the observer

Step-5 : Preprocessing Data for Input to RetinaNet

Step-6 : Preparing Files to be given for training Annotation file contains all the path of all images and their corresponding bounding boxes Class file contains the number of classes but in our case it is just 1 (Wheat)

Step-7 : Downloading the pretrained model

Model Parameters

Step-8 : Training Model. Step-9 : Predictions.

hatdetector's People

Contributors

madahetooo avatar mariamkotob avatar toqamuhammad6 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

toqamuhammad6

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.