Sleep Detection is a proof of concept application for Windows that will detect when a driver is falling asleep and alert him or her accordingly.
We keep a project backlog in our Trello board in case you feel like watching what we are up to.
==================== Compilation prerequisites:
This project is developed under Visual Studio 2012, but should be easily compiled with minimal configuration changes.
OpenCV:
- Download OpenCV for Windows.
- Extract it to directory:
<clone dir>\3rdParty\opencv\246, replace the version number with yours. - Ready!
Boost:
- Download Boost source code.
- Extract it to
<clone dir>\3rdParty\boost\boost_1_54_0, replace the version number with yours. - Compile boost, optionally you can use 3rdParty's
build.bat. - Ready!
==================== Run within Visual Studio:
- Go to SleepDetection project properties.
- Edit Debugging value Environment to, for example, PATH=$(OPENCV_DIR)\x86\vc11\bin;%PATH%.
- Run it!
==================== Run without Visual Studio:
- Download and install Visual C++ Redist.
- Make sure you have the needed OpenCV dll and xml files in the application's directory.
- Run it!