Skip to content

MSBT-2021-Silicon-Valley-Internship/Helmet-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSBT

This is a web service that recognizes wearing a helmet.
If a user captures a picture using a webcam, he or she can recognize whether he or she is wearing a helmet.


Members


Content


Preview

Homepage

Demo

  • Success 헬멧인식_성공_-online-video-cutter com

  • Fail 헬멧인식_실패_-online-video-cutter com

Function

  • App Bar appbar_1

  • Stepper stepper_1

  • Webcam ON,OFF WEBCAM-ON_OFF_1

  • Recapture Recapture


Technology stack

Architecture

image

AI

  • title
  • title
  • title
  • YOLO v5

Frontend

  • title
  • title
  • title

Backend

  • title
  • WSGI

ETC

  • title
  • title
  • title
  • title

Quick Start - Docker

1-1. Environment Setting

  • git clone

    git clone https://github.com/MSBT-2021-Silicon-Valley-Internship/Helmet-Detection.git
    cd Helmet-Detection
  • Frontend : React

    # npm install
    cd client
    npm i
    
    # npm build
    npm run build

1-2. Docker compose

  • docker-compose

    # make sure to be in the directory where your docker-compose.yaml
    docker-compose up --build
    docker-compose down
  • Checkout web service at http://localhost:8080


References

Structure

|-- client
    |
    |-- build // npm build
    |
    |-- src
    |   |   |-- client
    |   |   |   |-- Root.js
    |   |   |
    |   |   |-- pages
    |   |   |   |-- Camera // camera page
    |   |   |   |-- Home // home page, stepper
    |   |   |   |-- Navigation // app bar
    |   |   |   |-- Result // result page
    |   |   |   |
    |   |   |   |-- index.js
    |   |   |
    |   |   |-- shared
    |   |   |   |-- App.js
    |   |   |
    |   |   |-- index.js
    |   |   |-- serviceWorker.js
    |
    |-- Dockerfile
    |-- package.json // npm install
    |-- container_server.conf // NGINX configuration

|-- server
    |
    |-- model // YOLO v5
    |-- utils // YOLO v5
    |
    |-- app.py // Flask server
    |-- run.py // WSGI server
    |
    |-- files.py // File upload and download
    |-- predict.py // Predict input image
    |-- yolov5s_helmet.pt // Pretrained Pytorch weights
    |
    |-- requirements.txt
    |-- Dockerfile

YOLO v5

https://github.com/ultralytics/yolov5

Swagger

https://app.swaggerhub.com/apis-docs/MSBT_2021/Helmet-Detection/1.0.0

About

Helmet Recognition AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •