Motion detection with the Raspberry Pi camera

Clayton Lambert has written a nice Python script which takes a picture with the camera module and scans it for changed pixels, indicating motion. It uses the picamera library and I think it’s particularly good because you can see how it looks at each pixel of the image and counts the changes. He explains it in the video above and the code is available here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.