aidanngill / Catnip

Motion detection project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catnip

Motion detection project. Aims to minimise resource usage whilst providing accurate reports with minimal false positives.

Requirements

  • Python v3.8
  • USB Webcam or Camera Device

Usage

py -m catnip --help

Process

  • In one thread, record footage constantly and save the latest frame to a variable.

  • On another thread, process the very latest frame and check for movement every x (1) seconds.

  • If we detect movement, start recording frames to a new folder (or memory perhaps?) for x (15) seconds.

  • If the average is still the exact same at the end of a certain period of x (15) seconds, update the average.

Issues

  • Automatic exposure settings may create false positives, especially in places with harsh light differences such as a lamp on a brightly coloured surface at night.
    • Added a "fix" with the --disable-exposure argument.

About

Motion detection project.

License:MIT License


Languages

Language:Python 100.0%