700 likes | 2.89k Views
Motion Detection. By: Tejash Patel Nishad Soni ECE445-Project # 11. Introduction. Motion Detector is a device that Catches any movements in the view of camera Provides an indication of the movement Figures out the DIRECTION of the motion Can be useful as a security device
E N D
Motion Detection By: Tejash Patel Nishad Soni ECE445-Project # 11
Introduction • Motion Detector is a device that • Catches any movements in the view of camera • Provides an indication of the movement • Figures out the DIRECTION of the motion • Can be useful as a security device • Reliable and Cost-effective
Objective • Main goal is to implement a device that will detect any motion in front of the camera. If motion is encountered, then the Alarm/Red Light should be turned on. • This project can be mainly divided into two parts: Hardware & Software Software Recognizes Movements Hardware Triggers Alarm/Red Light
Edge Detection MatLab Simulations Canny Prewitt Sobel
Edge Detection Zero Cross More Simulations Roberts Sobel
Sobel Filter • 3x3 Filter • Concept of Directional Derivative (Gradient) • Calculates the difference of intensity • each pixel and its neighbors • If any one of the absolute differences (X-N) • is greater then 127, the resulting pixel (‘X’) • should be white • - Easy to implement and works well
Block Diagrams • Software • Downsampling by a factor of 4 • Sobel Filtering Storing two consecutive Sobel Outputs • Difference Frame Difference of Sobel Outputs • Summing & Thresholding Black or White Frames
Block Diagrams • Hardware • IR Sensor Distinguishes Black or White Background • AC to DC Smoothens Output from IR sensor • Pulse Detector Detection of positive edges • Amplifier Interface between Analog & Digital Logic
Designs • IR Sensor that we used in ECE110 • AC to DC Converter • * Full-Wave Rectifier • * Low Pass Filtering • * Voltage Regulator IR Sensor AC to DC Converter
Designs Output = R’Qn+R’Qn-1 • Pulse Detector: Implemented using • Combinatory & Sequential Logic • The Alarm (output) should be on if • Reset is off • AND • Input from IR sensor is HIGH OR • Previous Output is HIGH
Additional Feature • Software • - Dithering & Noise Removal to Sobel outputs • Determining the direction of motion by calculating • Horizontal & Vertical Centroids • Highlighting Centroid to display Direction of motion • on the monitor
Testing • Each component separately Sensor Black/White Background AC to DC Using a Sinusoid from Function Generator Pulse Detector Using pulses from Function Generator • Thresholding Varying the distance of moving object Changing Light Intensity of the room Changing the focus of camera - System Integration and Final Testing
Challenges and Successes • Learning DSP Architecture • Syntax and System Flow • Memory Management • Configuring Input/Output Ports • Getting Pulse Detector to work • Designing Interface between Analog & Digital Logic • Success in quickly finding an alternative for Input/Output Ports • Mastering DSP (C6711) Processor • Integrating Hardware and Software components
A great Success • Overall Project was a great success • Project worked properly as stated in the Design Review • Extra features added to the project also worked outstandingly
Future Development • Cameras with high resolution can give us better results • New Features can also be added • Capturing a snapshot of a frame when motion encountered • Instant recording by VCR if motion detected • Recognizing shapes of moving objects • Using this project in parallel for cost-effectiveness