Full-stack drowsy detection alert mobile app that uses closed/drowsy eyes to notify multiple users the longitude and latitude of the drowsy driver.
- Frontend and REST API server with database server has been dockerized into containers
- Drowsiness detection server HAS NOT been dockerized, due to performance, and therefore the python requirements for the system will be needed to be installed locally on the machine
- At least one Android device running with OS version >= 9.0
- Make sure docker is installed on local machine and python3
- install
cmake==3.22.2
using pip3 then install requirements.txt in/python-server
directory - extra real Android device will be needed to track drowsy driver because of the dockerized expo app
- Launch docker
- Edit docker-compose file and env.js file by replacing LOCAL IPV4 IP to your own machine local ipv4 ip that is running docker and python server
RUN docker-compose up --build
in the root project directory in the terminalRUN python3 ./python-server/flask-server.py
IN SEPERATE TERMINAL within the root directory of project to run the detection server. ifpython
command defaults topython3
then usepython
instead- Scan QR Code from docker client terminal in expo app (two devices for drowsy detection and tracking or one for drowsy detection only)
- To exit, stop docker containers and server through
CTRL + C
or GUI for docker