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
Android, Kotlin, Java, C, C++, Google ML (Machine Learning) kit, Face detection, CameraX, Camera1, USB and UVC Camera
All latest changes are in master branch.
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.
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.