moodmeter/README.md

14 lines
675 B
Markdown
Raw Normal View History

2017-11-17 16:17:31 +01:00
Start two processes:
2015-03-09 22:24:59 +01:00
2017-11-17 16:17:31 +01:00
gphoto2 to capture images:
2015-03-09 22:24:59 +01:00
2017-11-17 16:17:31 +01:00
`gphoto2 --port usb: --capture-image-and-download -I 1 --filename=/home/crowd/output/frame%06n.jpg`
2015-03-09 22:24:59 +01:00
2017-11-17 16:17:31 +01:00
The modified 'webcam demo' to analyse and generate json:
2015-03-09 22:24:59 +01:00
2017-11-17 16:17:31 +01:00
`/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.