Spectacular Mood Meter - for V2_'s Evening of the Black Box.
cmake_modules | ||
common | ||
opencv-webcam-demo | ||
video-demo | ||
.gitignore | ||
.travis.yml | ||
affdex-win-samples.sln | ||
appveyor.yml | ||
CMakeLists.txt | ||
console.html | ||
ISSUE_TEMPLATE.txt | ||
LICENSE.txt | ||
parse_output.py | ||
README.md | ||
requirements.txt | ||
run.py | ||
split_and_merge_output.py |
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.