0.0.3 • Published 5 years ago

nosy-detector v0.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

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 ffmpeg

Installation

npm install nosy-detector -g

Usage

nosy-detector [options]

Options

OptionDescriptionDefault
--max-faces -mfMaximum faces available behind system1
--command -cUser command that runs when faces more than --max-facespwd
--device -dCamera device address/dev/video0
--output-dir -oDirectory to save photos of face changes. If you won't save detected pictures, pass null../
--debug -tUsing for debug
--helo -hShow 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.