Skip to content

Instantly share code, notes, and snippets.

@Repulser
Repulser / raspberrypi-picamera-motion-detection.py
Created May 4, 2018 13:26 — forked from FutureSharks/raspberrypi-picamera-motion-detection.py
A simple example of using the Raspberry Pi Camera Module and python picamera for motion detection
#!/usr/bin/python
import picamera
import picamera.array
import time
threshold = 10 # How Much pixel changes
sensitivity = 100 # How many pixels change
def takeMotionImage(width, height):