Skip to content

Webcam security camera, motion detection, and alert. Made in Python, using OpenCV.

Notifications You must be signed in to change notification settings

richard512/python-security-camera

This branch is 14 commits ahead of, 2 commits behind RobinDavid/Motion-detection-OpenCV:master.

Repository files navigation

Python Security Camera

Python/OpenCV script that detect motion on webcam and allow record it to a file.

The simple way

https://www.youtube.com/watch?v=-RUu3EcielI

Compare video frames, checking how many pixels changed.

The smart way

https://www.youtube.com/watch?v=sRIdyfh3054

Detect moving objects and calculate their surface area.

More info

  • usually takes about 5 seconds to start up
  • initRecorder: you can switch the output video format here
  • somethingHasMoved: pixel comparison
  • processImage: the fun stuff!

About

Webcam security camera, motion detection, and alert. Made in Python, using OpenCV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%