Coder Social home page Coder Social logo

betty987 / drowsinessdetectorwithfirebase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polklabs/drowsinessdetector

0.0 0.0 0.0 107.31 MB

Drowsiness Detector

Home Page: https://www.polklabs.com/project/drowsiness-detector

License: MIT License

Python 0.78% Python 1.59% Python 1.59% Python 64.47% Java 31.58%

drowsinessdetectorwithfirebase's Introduction

DrowsinessDetector

Abstract

Our program aims to alert users if they are drowsy by analyzing video input from a webcam. The intended use for Aerospace is for mission control workers to stay alert, as launches may occur at any time.

alt text

Guide

A breakdown of the the files under our source code directory

  • alerts.py - alerts module that contains alert function using alert.wav in assets/
  • isDrowsy.py - primary drowsiness analysis module that will contain multiple functions to perform on faces
  • main.py - main module defines frame grabbing functions and uses them to perform analysis with video input
  • shape_predictor_68_face_landmarks.dat - data file used by dlib library to detect facial landmarks
  • initialize.py - module that checks for crucial dependencies of Python version, OpenCV version, and webcam validity, returning the webcam if valid
  • calibration.py - module that takes samples of a person's face, eyes and mouth open, to determine eye and mouth aspect ratio thresholds
  • login_gui.py - module that provides UI for the user to login or register a new account; depends on firebase API calls
  • firebase_login.py - functions that access firebase database to manipulate user accounts
  • start.py - starting module calls on initialize() to retrieve the webcam, then calls the main function on the webcam
  • testFace.jpg - image of Ryan Reynolds used to test facial analysis

Dependencies

  • Python
  • OpenCV
  • Dlib
  • Pyrebase
  • Additional python modules associated with dlib, OpenCV, and sounds

drowsinessdetectorwithfirebase's People

Contributors

dartok-sd avatar daniellerobinson avatar polklabs avatar brandontran24 avatar vsneddon 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.