The easy one is to use a USB web camera, Raspberry Pi and Motion software.
The second version we will add Apache NiFi - MiNiFi which will read the images and send them on.
Github: https://github.com/tspannhw/leprechaun-detector/tree/master
This will send you an image when one is detected.
Install the Motion Detector
apt-get install motion -y
Edit the Configuration
/etc/motion/motion.conf
Some needed configuration
# Command to be executed when an event starts. (default: none)# An event starts at first motion detected after a period of no motion defined by event_gap; on_event_start /opt/demo/runmotion.sh %f
Store your images somewhere MiNiFi can grab them
target_dir /opt/demo/images
Start the Motion Detector
/etc/init.d/motion start
References
- https://github.com/Motion-Project/motion
- https://motion-project.github.io/motion_config.html
- https://motion-project.github.io/motion_config.html#basic_setup_v4l2