GithubHelp home page GithubHelp logo

madenburak / fatigue-dedection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 903 KB

According to the eye open,close or driver is/is not in frame, it detects the status of the drowsiness on MATLAB.

License: MIT License

MATLAB 100.00%
fatigue-dedection-matlab

fatigue-dedection's Introduction

Fatigue-Detector

According to the eye open or off, it detects the status of the drowsiness on MATLAB. Created by developing the Vincent Tatan's repo on the link. Instead of giving a direct alarm in the case of the eyes closed, the possibility of blink is considered. After a certain period of time, the Tatan's repo changed to give warning if the eyes are still off. Link

Introduction

The driver is a simple adaptation of fatigue detection. The face received from the camera, before the face, then the eyes are detected. It gives the drowness warning on the screen and audible warning, according to the open or closed of the eyes.

How Does It Work?

The image received from the camera is first detected with Haar Cascade. Then again with Haar Cascade with eyes. The area where the eyes are cropped. The image obtained is converted to binary format. The close morphological process is applied on. Then looked at the ratio of black and white pixels in the image. The ratio change by the eye open or off.

With the operation of the code, the eye will be expected clearly in the frame to be taken. The rate received from the first frame is determined as threshold value. Then the status of the eye is detected by comparing the rate in the current frame with the threshold value. Warning if the eye is closed for a specified period of time. The image will also be warning if the person is lost. Details are available in codes.

We have 5 files available. Two files of morphological operations used. Files necessary to work: Fatigue_delay dedectorEye Alarm

Let's See the Results

Awake Sleepy

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.