Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir, first i want motion detect to capture images.after i will call the timer.please tell me in code to motion detect by webcamera and i will use the timer. i really don't know the code for motion detection.please help me..
Posted

if you mean to say,
you are capturing images using webcam on every timer tick
and want to know whether any motion is happened

then
you have two images one for last timer tick and second for current timer tick

convert both images in binary values
and compare binary values of images if it's not equal then it indicates some motion is ocuured.

Happy Coding!
:)
 
Share this answer
 
Comments
Dhinesh kumar.V 10-Aug-12 8:44am    
can u explain briefly in code..please
Start reading, learning from this article: Motion Detection Algorithms[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900