Spectacular Mood Meter - for V2_'s Evening of the Black Box.
Find a file
2017-11-24 12:41:38 +01:00
cmake_modules Add custom module 2016-03-18 14:31:27 -04:00
common Read subsequently numbered files 2017-11-17 16:17:31 +01:00
opencv-webcam-demo Add possibility to use segments for beter face detection 2017-11-24 12:41:38 +01:00
video-demo Fix 3.4 bug (#36) 2017-10-20 17:56:24 -04:00
.gitignore Initial commit 2015-03-09 17:32:50 -04:00
.travis.yml Fix 3.4 bug (#36) 2017-10-20 17:56:24 -04:00
affdex-win-samples.sln Fix 3.4 bug (#36) 2017-10-20 17:56:24 -04:00
appveyor.yml Fix 3.4 bug (#36) 2017-10-20 17:56:24 -04:00
CMakeLists.txt Fix a bug where the screen hangs in the case of photo/video 2016-04-05 13:58:40 -04:00
console.html Fun from cli and host as websocket 2017-11-16 17:11:28 +01:00
ISSUE_TEMPLATE.txt "leverage" -> "use" 2017-07-07 10:05:09 -04:00
LICENSE.txt Add license file to the repository 2016-01-05 11:36:58 -05:00
parse_output.py Add possibility to use segments for beter face detection 2017-11-24 12:41:38 +01:00
README.md Add possibility to use segments for beter face detection 2017-11-24 12:41:38 +01:00
requirements.txt Fun from cli and host as websocket 2017-11-16 17:11:28 +01:00
run.py Read subsequently numbered files 2017-11-17 16:17:31 +01:00
split_and_merge_output.py Add possibility to use segments for beter face detection 2017-11-24 12:41:38 +01:00

Start two processes:

gphoto2 to capture images:

gphoto2 --port usb: --capture-image-and-download -I 1 --filename=/home/crowd/output/frame%06n.jpg

The modified 'webcam demo' to analyse and generate json:

/home/crowd/build/opencv-webcam-demo/opencv-webcam-demo --data /home/crowd/affdex-sdk/data --faceMode 1 --numFaces 80 -o /home/crowd/output-backup/ --draw 0

Using split_and_merge_output, frames are split into segments so SMALL_FACES actually detects really small faces. This requires enabling --segments on opencv-webcam-demo (so it detects/writes segment%06d files) split_and_merge_output also remerges these segment%06.json files into a frame%06d.json file.