GithubHelp home page GithubHelp logo

affromero / android_blinkdetection Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 13.0 8.7 MB

Repository for Classification of Open/Closed eyes for Android devices

Java 100.00%
opencv opencv-python blink-detection-algorithm eye-detection android android-app android-application drowsy-driver-warning-system drowsiness-detection java

android_blinkdetection's Introduction

OpenCV-Projects

it has code and APK for binary classification of Open/Closed eyes.

This work is developed in 3 stages in order to classify Open/Closed Eyes.

For each frame, let's say:

  1. Face detection - LBP it is performed:

  • Then changing ROI

  • Then both eyes are located according to geometry of the face

  • Now changing ROI for each eye

Left Eye

Right Eye

  1. Eye detection - Haar it is performed (Different detector for each one), and we got:

    Left Eye

    Right Eye

  2. Binary classification according to both eyes:

android_blinkdetection's People

Contributors

affromero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

android_blinkdetection's Issues

Regions for eyes

Hei, sorry to disturb you.
I've studied your code and i have a question
How you know to take this values and measures for the regions of the eye?
//Split two different regions for two eyes
///*
Rect eyearea_right = new Rect( RectOfFace.x + RectOfFace.width / 16 ,
(int) (RectOfFace.y + (RectOfFace.height / 4.5)) ,
(RectOfFace.width - 2 * RectOfFace.width / 16) / 2,
(int) (RectOfFace.height / 3.0)
);

    Rect eyearea_left = new Rect( RectOfFace.x + RectOfFace.width / 16 + ( RectOfFace.width - 2 * RectOfFace.width / 16 ) / 2 ,
             (int) (RectOfFace.y + (RectOfFace.height / 4.5)) , 
             (RectOfFace.width - 2 * RectOfFace.width / 16) / 2 , 
             (int) (RectOfFace.height / 3.0)
             )

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.