On Nov 17, 12:41 pm, "Vlad " <alexander_zi...@yahoo.com> wrote: > Hy! I have a homework in matlab to detect movement and save the images that contains the movement to hard drive(when there is any movement).Can any one help me with some information ..about how to save an image to hard drive while live streaming si running? I am thinking about something like this : when movement is detected: picture=getsnapshot(obj) and then i have to save the 'picture' ..but i don't know how.. And about the movement function..i found few exemples but any help would make me greatful..
Sounds like a fairly difficult piece of homework!
Don't know the specifics of saving the image, but I would venture that that is the least of your problems.. Detection would be the hardest part. I would guess a place to start is to compare a current picture with the preceding one, each time you have a new frame and define a threshold for similarity. If there is a difference above this threshold, there is movement. But there would be many things that could change the picture, but not necessarily be movement (light changes, noise on the recording, etc.). I think this is a big job!