A drowsiness detection model in the making
$ git clone https://github.com/kcaashish/RennervateML.git
$ cd RennervateML
- For Linux:
$ python -m venv .venv $ source .venv/bin/activate
- For Windows:
Go to the folder, then open Git Bash, then:
$ python -m venv .venv $ source .venv\Scripts\activate.bat
$ pip install -r requirements.txt
You should try installing each requirements separately if you are getting errors using the above method.
- For Linux:
-
Install Cmake into your system
Arch / Manjaro $ sudo pacman -S cmake
Debian / Ubuntu $ sudo apt install cmake
-
Then, in the virtual environment:
$ pip install cmake $ pip install opencv-python==4.2.0.34 $ pip install dlib
-
- For Windows:
- You can follow the link below for installing Cmake and dlib required for the project: Installation helper
- Use the link below to download Cmake if the link mentioned in the guide doesn't work: download Cmake from here
- For openCV:
$ pip install opencv-python
$ code .
If you need to download the shape predictor file, to get it from dlib go to the following link and extract the shape_predictor_68_landmark.dat file to the project folder. Or you can download it directly here.