Raspberry Pi Camera Motion Detection

Raspberry Pi Camera Motion Detection


Demonstration of a small motion detection script I wrote for the picamera. This video was recorded before any optimizations were done to the script. Each image is captured at 64x36 then compared to the previous image pixel for pixel based on their RGB value. As I come up with ways to make the script better I will push the changes to GitHub.

--- Project Requirements ---

Raspberry Pi Kit: http://amzn.to/1Bq88KQ

Official Pi Camera: http://amzn.to/1tydjnN

piPixelMotion: https://github.com/Claytonn/piPixelMo...

My Blog: http://blog.claytonn.com

Personal Site: http://claytonn.com
Closed Caption:

what is up you guys clean here today and
i'm going to be showing you guys a
script that I wrote for my brand-new
raspberry pi
I just got this thing in the day before
yesterday actually might have been
yesterday I can't really remember but I
got the full kit has a case a Wi-Fi
dango and a official camera actually
about the camera separately but this kid
that I have I will link in the
description so you guys can check it out
if you're interested in getting one of
your own
definitely recommend it if you're
interested in doing anything like this
if you ever look at the arduino but do
you think it might be a little too much
for you maybe this is a better place to
start for you in the end you can control
an arduino from the raspberry pi so if
you want to use this as a master that is
a possibility but anyways the script
that i'm gonna be showing off today is a
motion detection script
so basically what it's doing is using
the camera to take pictures and it's
comparing the pictures to each other to
see if there's been any kind of movement
or any changes and then how it's doing
this is a perfect so basis so it will
look through all the pixels on the image
and i am using a low res image but it
still takes a while because it is a
raspberry pi is a little suit little
almost a little supercomputer it's a
little computer so it's not exactly a
supercomputer it it has limitations on
its speed
so we'll go ahead and give a
demonstration here i'm going to back up
a little bit and try to not move so I
can show you what it does when it's not
detecting anything and then i will also
move around so you can see actually
initiate recording
ok so i'm about to launch the command
here and Buddy see the light turns on
hopefully I'm not moving at all oh my
hands shaking cause I'm nervous
I don't want to go off five percent
changed
ok this script only triggers the
recording had twenty percent changed so
as long as I can maintain less than
twenty percent will be fine
has took the form up towards the screen
so you can actually see the output right
now and move my hand really really
slowly and hopefully get it in frame
that was twelve percent change just
removed
hand ten percent ok starting to go back
down because i'm starting to move less
again I now a two percent so that's
that's what it does whenever it's not
recording
I mean whatever it's not detecting
enough movement to set it off
so I'm actually going to move my hand in
front of the camera now so we can see
that change and it should initiate
recording because I should probably come
out to about thirty-five percent of the
pixels being changed so there you go
the motion detection is recording now
and this video will show up in the
browser so I'm waving at the camera
uh there is converting it into a mp4 and
it should now be available in a brother
so i'm going to stop the script
I see the light turned off on the
Raspberry Pi and we're gonna come over
here to the browser
yeah sorry i'm recording the the screen
on my phone but uh he should be able to
see kind of okay
our post the link for the github on this
or in the description of this video so
you can check out this script but over
here after this finishes updating
there we go here is the video that was
just recorded a right here in the script
somewhere
LOL that's unimportant what is important
is the video that was recorded sorry I'm
getting off topic
well here's this video you can see me
talking to the camera
that's me waving and you to shave but
yeah you can probably tell that it's a
little grainy
the reason is so great news because i
have this will cover on the raspberry pi
camera still
oh that's really out of focus focus
all right there you go that will lip
that blue lip right there that comes off
and remove that little plastic thing
which is causing all the graininess of
the camera this camera does 1920 x 1080
it's 30 FPS and it does 1280 x 720 @
60fps which which is really good it's
only like a twenty-dollar module
so you guys are interested in this you
like this script you know be sure to
check it out like i said i'll post a
link to the github repository in the
description so you can play around with
this script
I should be updating it a couple times
that I have some ideas for some
optimizations to make it a little faster
maybe maybe this could turn into
something maybe couldn't
but anyways thanks for checking out the
video be sure to subscribe if you
haven't already have plan on doing a lot
more raspberry a lot more raspberry PI's
tutorials almost started getting twisted
there anyways what're you guys thanks
for watching

Video Length: 04:54
Uploaded By: Clayton Lambert
View Count: 40,828

Related Software Products
Webcam Motion Detector
Webcam Motion Detector

Published By:
Zebra-Media

Description:
Motion detection and webcam monitoring. Video surveillance with multiple IP cameras and video capture devices. For each video frame, if motion is detected, the Alarm event occurs, that returns a global motion ratio, depending of the number of cells in which motion has been detected, and the level of motion in each cell. A sensitivity grid is applied on video frames. You can adjust the sensitivity of the detection, and mask out areas of the camera view to avoid false alarms. When the camera ...


Related Videos
The World's Smallest Motion Detection MiniDV Camera Review And Instructions
The World's Smallest Motion Detection MiniDV Camera Review And Instructions

A motion detection camcorder, camera and DVR all in one. The Gum Spy Camera Check out my other reviews of other spy cameras: https://www.youtube.com/watch?v=dLaGk... The Car Key Motion Detection Spy Camera https://www.youtube.com/watch?v=D5fad... The spy button camera https://www.youtube.com/watch?v=xlnPi... The pen spy camera http://www.youtube.com/watch?v=hoOBq3... The cigarette lighter spy camera http://www.youtube.com/watch?v=EIvXZY...br ...
Video Length: 12:46
Uploaded By: Do It Yourself
View Count: 276,471

How To Turn Your Webcam into a Security Camera With Dorgem
How To Turn Your Webcam into a Security Camera With Dorgem

At last, a tutorial. A Remake of the original, on how to turn your webcam into a security cam. That auto captures with motion detection and stores the images on your computer or online Server. ►FOLLOW Me on Twitter!: http://Twitter.com/YuTubeMedia Download Dorgem: http://download.cnet.com/Dorgem/3000-... Mac Users Try this other Software: http://download.cnet.com/iAlertU/3000... Original Tutorial: http://www.youtube.com/watch?v=fcN-AU... br ...
Video Length: 05:14
Uploaded By: yutubemedia
View Count: 261,865

Mini HD Spy Camera- Motion Detection, Video, Webcam, & Camera!
Mini HD Spy Camera- Motion Detection, Video, Webcam, & Camera!

http://www.spyville.com/mini-hd-digit... This Camera takes pictures, video & can be a webcam. Its also a spy camera, with Motion activated video & audio recording. Comes with 2GB Micro SD. Check it out!- http://www.spyville.com/mini-hd-digit... The Discount is Already Included on the special link above! This Camera Is $190 at other sites! http://bit.ly/H0rE6 I wouldnt buy it elsewhere! ---------------- How I Make Money-⇓br ...
Video Length: 03:40
Uploaded By: yutubemedia
View Count: 180,485

SpyKit Android Spy Camera, Video & Motion Detector
SpyKit Android Spy Camera, Video & Motion Detector

Download it from Play Store: https://play.google.com/store/apps/de... FEATURES: •Take pictures, record video, audio and more without raising suspicion! •Easy to use and simple to setup. •Motion sensing and hard key activation. No need to turn your screen on! •Remote activation using a simple SMS. •Cool looking desktop widgets.
Video Length: 02:20
Uploaded By: ZGroup MB
View Count: 94,511

Turn a Webcam into a Motion Sensing Security Camera
Turn a Webcam into a Motion Sensing Security Camera

Thanks to the cheapness and ubiquity of the webcam, it's now both easy and affordable to roll your own surveillance system. In this video tutorial, I'll be demonstrating how to turn a cheap webcam into a motion-sensing surveillance camera using a free Windows application called Yawcam. Transcript and show notes: http://www.thoughtshots.com/2011/08/t... Download Yawcam for free at http://yawcam.com Background music featured in this video is by Broke for Free and ...
Video Length: 04:43
Uploaded By: thoughtshots
View Count: 77,776

NiteEye Mini - Motion Detection DVR Cam - ElectroFlip.com
NiteEye Mini - Motion Detection DVR Cam - ElectroFlip.com

Whether life hands you honey or lemons, make sure you catch it all in high resolution video with the amazingly easy to use NiteEye Mini. We have all be in situations where we wished we had a camcorder handy. Sure, we could probably use our Smartphones to capture the moment, but the videos or pictures never come out quite right. On another note, your phone probably can't discretely see a thing in the dark. The NiteEye Mini was designed to be used in any lighting condition, especially the ...
Video Length: 02:58
Uploaded By: ElectroFlip
View Count: 70,268

How to Turn Your Laptop/Netbook Webcam into a DIY Motion Detecting Security Camera for FREE!
How to Turn Your Laptop/Netbook Webcam into a DIY Motion Detecting Security Camera for FREE!

Here's how you can turn your old laptop/netbook into a motion detecting security camera and also see your new web cam over the internet or even on your smartphone using Android app like Tiny Cam. Download Yawcam for Windows here: Google it! (sorry lost my download server) Also see: How to Turn Your Android Smartphone or Tablet into a Security IP Webcam! http://www.youtube.com/watch?v=tJQxzJ916aA How to Turn your Computer/Laptop ...
Video Length: 20:02
Uploaded By: Max Lee
View Count: 55,668

Webcam Zone Trigger motion detection software
Webcam Zone Trigger motion detection software

This is a short intro video for the Webcam Zone Trigger software. For DIY motion detection projects, Zone Trigger is cheap and simple to use. Free trial version: http://www.ZoneTrigger.com
Video Length: 03:18
Uploaded By: OmegaUnfold
View Count: 41,607

DIY HD IP Security Cam with recording and motion detection using Android, IP Webcam and iSpy! 1080P
DIY HD IP Security Cam with recording and motion detection using Android, IP Webcam and iSpy! 1080P

In this video I show how easy it can be to turn an old android device into an IP Security camera complete with recording and motion detection! For more info and links to the software check out my blog posting here: http://robwillis.info/2013/10/android... Software used: IP Webcam tinyCAM iSpy Thanks to http://teknoaxe.com for the music! hr / bClosed Caption:/b yeah hey what's going on everybody in this video ...
Video Length: 09:37
Uploaded By: Rob Willis
View Count: 35,374

Webcam Motion Detection
Webcam Motion Detection

Try out vision based projects at http://www.livemurals.com The webcam motion detection projects seen in the video: 1. Window Wiper - Uses detected motion to erase a foreground image. 2. Touch Cube - Measures motion and guesses the intention of the user to either spin or zoom in on the cube. 3. Touch Globe - Same as TouchCube except the cube is replaced by a globe and stars are added to the background. (I wish the Google Earth ...
Video Length: 04:58
Uploaded By: Marcus Wan
View Count: 33,115

Copyright © 2025, Ivertech. All rights reserved.