Skip to content

An app that prevent drivers from falling asleep while driving.

Notifications You must be signed in to change notification settings

BekhruzDev/DriveSafe

Repository files navigation

DriveSafe

An app that prevent drivers from falling asleep while driving. Link to the GOOGLE PLAY MARKET: https://play.google.com/store/apps/details?id=com.bekhruzdev.drivesafe

Technologies used

Android, Kotlin, Java, C, C++, Google ML (Machine Learning) kit, Face detection, CameraX, Camera1, USB and UVC Camera

How to use

All latest changes are in master branch.

1

This is the off state of the detector. Before turning it on, click on the "Preview" button. Place and adjust your phone properly inside your car, and make sure that the phone's front camera is pointed to your face. After your phone is set in a proper position, you can click on the animating power button to run the detector.

image

Once sleepiness is detected, the app plays sounds that wakes the driver up.

NOTE: Even if the driver wake up the playing sound does not stop immediately, app still keeps playing and stops about 10-20 seconds later in order to make sure that the driver is completely awake.

While detection is running, if you want to save phone battery life, click on the "Eco mode" button and detection continues running in the background.

If you prefer using external web camera, then click on the "USB Camera" button and plug in the USB Camera using (OTG) adapter. This feature is currently in TEST mode and therefore smartphones with Android 10 and below support this feature.

If you pull up the "Settings", Settings window will appear

Driver can choose which sound the app plays. [Police siren, Truck honk, Alarm siren]

Sleep timeout option in the settings, defines after how many seconds after the driver falls asleep, the app should start alarming

Turning on the "Use flashlight" option, enables the app to blink on and off the phone's flashlight once driver's sleepiness is detected.

Contact developer

mrabdullakhujayev@gmail.com

DriveSafe and Stay safe

About

An app that prevent drivers from falling asleep while driving.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published