eel 6883 spring 2007 software engineering ii gleyner garden video surveillance project
TRANSCRIPT
EEL 6883EEL 6883Spring 2007Spring 2007
Software Engineering IISoftware Engineering II
Gleyner GardenGleyner Garden
Video Surveillance ProjectVideo Surveillance Project
IntroductionIntroduction
Motion JPG IP Cameras are rapidly Motion JPG IP Cameras are rapidly becoming more popular and commonbecoming more popular and common
Used by private schools and daycare centersUsed by private schools and daycare centers Private companies use them to monitor Private companies use them to monitor
multiple buildings/areas simultaneouslymultiple buildings/areas simultaneously Private homeowners use them for home Private homeowners use them for home
securitysecurity
MotivationMotivation
1. Security1. Security I live in Melbourne, but my I live in Melbourne, but my
family and I stay in Orlando family and I stay in Orlando at leastat least one weekend a one weekend a month…month…
I would like a supplemental I would like a supplemental security system to let me security system to let me know what’s going on at my know what’s going on at my front door.front door.
2. DOGS! Or Rude Owners2. DOGS! Or Rude Owners I love ‘em, but I don’t have I love ‘em, but I don’t have
oneone I shouldn’t have to watch I shouldn’t have to watch
where I step when I’m where I step when I’m playing in the yard with my playing in the yard with my 2 year-old daughter, but I 2 year-old daughter, but I do.do.
MotivationMotivation
3. Seemed like it would be fun3. Seemed like it would be fun There are plenty of applications out There are plenty of applications out
there that do thisthere that do this The camera I purchased came bundled The camera I purchased came bundled
with something better than what I with something better than what I createdcreated
DesignDesign
Started with this:Started with this:
DesignDesign With a new baby coming in 8 weeks, With a new baby coming in 8 weeks,
I should probably stick to one $200 I should probably stick to one $200 cameracamera
DesignDesign
Documentation, courtesy of doxygenDocumentation, courtesy of doxygen
CameraCamera Looked into:Looked into:
D-LinkD-Link AxisAxis PanasonicPanasonic
Mostly read customer reviews on Mostly read customer reviews on merchant websites like Amazonmerchant websites like Amazon
CameraCamera
Went with this one:Went with this one:
http://www.securityideas.com/http://www.securityideas.com/stca1.htmlstca1.html
Motion DetectionMotion Detection
Image processing library: CxImage (FREE!)Image processing library: CxImage (FREE!) Algorithm goes as follows:Algorithm goes as follows:
Resize the image to an arbitrary # of pixels Resize the image to an arbitrary # of pixels using using CxImage::ResampleCxImage::Resample
CxImage::FFT2 CxImage::FFT2 Computes the bidimensional FFT Computes the bidimensional FFT or DFT of the imageor DFT of the image
Using transformed image, I loop through it and Using transformed image, I loop through it and create an image signature array of a set size (if create an image signature array of a set size (if you have a lot of processing power go with a you have a lot of processing power go with a higher #)higher #)
Store image signature array as your base imageStore image signature array as your base image
Motion DetectionMotion Detection
Do the same thing again for Do the same thing again for subsequent imagessubsequent images
Create a normalized # we can map Create a normalized # we can map to our “sensitivity threshold”to our “sensitivity threshold”
If the threshold exceeds the If the threshold exceeds the calculated difference in the image, calculated difference in the image, we have detected motionwe have detected motion
ProblemsProblems
Very sensitive to the amount of lightVery sensitive to the amount of light Solution could be to automatically calculate a Solution could be to automatically calculate a
base image every half hour or sobase image every half hour or so
Don’t have a mechanism for limiting the Don’t have a mechanism for limiting the amount of emails sent, if motion persistsamount of emails sent, if motion persists I could limit the # of emails sent to a certain I could limit the # of emails sent to a certain
# per period of time# per period of time
DemonstrationDemonstration
Hope this works… never tried it from Hope this works… never tried it from herehere