nosy-detector
v0.0.3
Published
Detect nosy people looking at camera
Readme
Nosy Detector
A CLI tool using opencv and ffmpeg to detect number of faces looking at monitor.
For example you can open full-screen f*ckoff picture just when someone else looking at your monitor behind of you. :D
Dependencies
You have to install nodejs >= 8, opencv >= 3, and ffmpeg natively on your machine. To install opencv and ffmpeg in you Ubuntu OS you can easily exec:
apt install libopencv-dev python-opencv ffmpegInstallation
npm install nosy-detector -gUsage
nosy-detector [options]Options
| Option | Description | Default | |-|-|-| | --max-faces -mf | Maximum faces available behind system | 1 | | --command -c | User command that runs when faces more than --max-faces | pwd | | --device -d | Camera device address | /dev/video0 | | --output-dir -o | Directory to save photos of face changes. If you won't save detected pictures, pass null. | ./ | | --debug -t | Using for debug | | | --helo -h | Show man page | |
Example
nosy-detector -mf 1 -o ./saved_pics" -c "eog fckoff.png"This command show f*ckoff.png picture just when someone looking at your monitor behind you and save her face to ./saved_pics directory.
