Skip to content
ํ”„๋กœ์ ํŠธ

akshaybahadur21/Drowsiness_Detection has 545 GitHub stars and 263 forks. Star changes are not measured yet. Last checked 2026-11-14 02:13 UTC. Last push 2025-06-09.

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘
in 7 days
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘
in 15 days
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์†Œ๊ฐœ

A simple Drowsiness Detection module for humans. ๐Ÿ˜ด ๐Ÿšซ ๐Ÿš—

๊ฐœ๋ฐœ ๋„๊ตฌ

README.md

Original

Drowsiness Detection OpenCV ๐Ÿ˜ด ๐Ÿšซ ๐Ÿš—

This code can detect your eyes and alert when the user is drowsy.

Applications ๐ŸŽฏ

This can be used by riders who tend to drive for a longer period of time that may lead to accidents

Code Requirements ๐Ÿฆ„

The example code is in Python (version 2.7 or higher will work).

Dependencies

  1. import cv2
  2. import imutils
  3. import dlib
  4. import scipy

Description ๐Ÿ“Œ

A computer vision system that can automatically detect driver drowsiness in a real-time video stream and then play an alarm if the driver appears to be drowsy.

Algorithm ๐Ÿ‘จโ€๐Ÿ”ฌ

Each eye is represented by 6 (x, y)-coordinates, starting at the left-corner of the eye (as if you were looking at the person), and then working clockwise around the eye.

It checks 20 consecutive frames and if the Eye Aspect ratio is less than 0.25, Alert is generated.

Relationship

Summing up

For more information, see

Results ๐Ÿ“Š

Execution ๐Ÿ‰

To run the code, type python Drowsiness_Detection.py

python Drowsiness_Detection.py
Made with โค๏ธ and ๐Ÿฆ™ by Akshay Bahadur

๐Ÿ“Œ Cite Us

To cite this guide, use the below format:

@article{Drowsiness_Detection,
author = {Bahadur, Akshay},
journal = {https://github.com/akshaybahadur21/Drowsiness_Detection},
month = {01},
title = {{Drowsiness_Detection}},
year = {2018}
}

References ๐Ÿ”ฑ

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ