gdsc-seoultech / DontSleepDriver_ML

Don't Sleep Driver ML Repo입니다.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don’t Sleep Driver

What is Don’t Sleep Driver?

Every year, drowsy driving causes numerous traffic accidents and many people are injured or killed. In Korea, 70% of deaths in highway traffic accidents are due to drowsiness or neglect. The death rate from drowsy driving is much higher than drunk driving, but awareness of the risks is very low. Drivers who drive alone for long periods of time are vulnerable to drowsy driving. So, to solve this problem, we created an app to prevent drowsy driving called Dont Sleep Driver.

Feature

Users can sign in with their email and password and can easily sign up and sign in with OAuth2.0 technology. When the user starts driving and presses the start button of the app, it recognizes faces through the camera and determines whether or not they are asleep. If the user is drowsy while driving, a warning alarm will sound, as well as an alarm for stretching and ventilation every 30 minutes and 2 hours. You can end driving and inquire about your driving record, gps information and sleep level in the record tab.

Demo Video

DontSleepDriver

Repositories

👨‍: Team Member

Back-End Android ML
조인혁
조인혁
윤희서
윤희서

김예원
김예원
나건주
나건주

This Android App not used our project

The original plan was to build tensorflow lite, but due to time constraints, we used ML kit.
This repository is the ML learning model that I was originally going to use and the repository that I tested on tensorflow lite and Android. So if you want to see our application, please go Android.

Build the demo using Android Studio

Prerequisites

  • If you don't have already, install Android Studio, following the instructions on the website.

  • You need an Android device and Android development environment with minimum API 21.

  • Android Studio 3.2 or later.

Building

  • Open Android Studio, and from the Welcome screen, select Open an existing Android Studio project.

  • From the Open File or Project window that appears, navigate to and select the Android directory.

  • If it asks you to do a Gradle Sync, click OK.

  • You may also need to install various platforms and tools, if you get errors like "Failed to find target with hash string 'android-21'" and similar. Click the Run button (the green arrow) or select Run > Run 'android' from the top menu. You may need to rebuild the project using Build > Rebuild Project.

  • If it asks you to use Instant Run, click Proceed Without Instant Run.

  • Also, you need to have an Android device plugged in with developer options enabled at this point. See here for more details on setting up developer devices.

Models

  • Yolov5s
  • Input data : [1 , 320, 320, 3]

Test Python

!git clone https://github.com/gdsc-seoultech/DontSleepDriver_ML/detect  # clone repo  
!pip install -r requirements.txt # install dependencies  

!python detect.py --source {Image Path} --weights {best.pt Path} --name exp  

About

Don't Sleep Driver ML Repo입니다.


Languages

Language:Python 76.3%Language:Java 22.6%Language:Shell 0.9%Language:Dockerfile 0.2%