Skip to content

image-amazing/fdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdd

This is a linux project for fatigue driving detection,which aims to monitor the driver's fatigue driving behavior,including distraction,yawn,frequent yawn,sleepy, by face analysis.

Travis Opencv Caffe libconfig Packagist

Table of Contents

The project requires the following packages to run:

You can visit their official website to get source code and learn how to compile and install these packages.

  1. Compile and install Opencv,Caffe,libconfig++.
  2. Clone the fdd_linux repository.
  3. Switch the compile options ,according whether the system has screen or not, whether the system can play sound or not ,whether you need to compile tools or not, by editing top level CMakeLists.txt.
  cd fdd_linux
  vim CMakeLists.txt

If you switched play sound option on,you should install sox at first.

   sudo apt-get install sox
  1. Compile the source code and install the package by following commands
  mkdir build
  cd build
  cmake ..
  make
  sudo make install
  1. Enter 'configures' folder under project home and edit the configure file 'DriverMonitorGlobalVariables.cfg' according to your system environment.You must make sure the 'tarFolder' you configured existed.
  cd ../configures/
  vim DriverMonitorGlobalVariables.cfg
  1. Now you can run the DriverMonitor by following commands
  cd ../build/DriverMonitor
  ./DriverMonitor ../../configures/DriverMonitorGlobalVariables.cfg

or

  ./DriverMonitor ../../configures/DriverMonitorGlobalVariables.cfg 0

The second parameter of DriverMonitor is the camera id which is optional.

  1. Error: multiple definition of 'typeinfo for caffe::InnerProductLayer '
    Solution: Edit file 'include/CaffeClassifier/caffe_layers_registry.hpp' to comment INSTANTIATE_CLASS code lines of multiple defined layers

fdd_linux is licensed under the MIT license.
Copyright © 2018 Lyfe667

About

Fatigue driving detection by face analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published