|
Author |
Topic: Motion detection (Read 437 times) |
|
gilazilla
|
Motion detection
« on: Dec 1st, 2004, 4:58pm » |
|
i am a newbie here at this forum. This website is quite good as it deals with only image processing stuff. i have a problem about motion detection using frame differencing. i am dealing with pictures of objects moving.I want to differentiate which is the moving object between the 2 pictures. So i am using edge detecion on both pictures then using frame differencing so that the resulting image only contain edges of the moving object. But frame differencing does not work well when the the moving object move a little bit only. thus the moving object seem to be cut off and not complete due to the subtraction of frames. I hope anyone reading this understand this? Anyone with solution to this problem? i have an idea of labelling the object during edge detection.And using the current frame picture as reference search for the complete object in the edge image and identify as moving object based on the labels used and aslo the postion of the pixels. i hope anyone with experience help me out here.
|
|
|
|
gilazilla
|
Re: Motion detection
« Reply #2 on: Dec 2nd, 2004, 8:45am » |
|
yup i saw a lot but does not still answer any of my problem.Most of the projects are detecting blobs of color but i want to detect moving objects after edge detection. Anyone with more ideas ?
|
|
|
|
mohn
|
Re: Motion detection
« Reply #3 on: Dec 2nd, 2004, 1:13pm » |
|
tom igoe @ itp has some decent examples over here: http://stage.itp.tsoa.nyu.edu/~tigoe/pcomp/code/archives/000968.shtml this might help you get where you are going. the best way to handle what you are trying to do is clone the frames and compare pixel arrays. also remember that depending on the speed of your machine, the performance may lack a bit with video and thus it may appear that the images move a few pixels before your machine will render. of course your machine is prob top o the line and in that case this last para is completely useless to you... you can poke around here and it may help out a bit as well: http://webcamxtra.sourceforge.net/ rock on and good luck -
|
« Last Edit: Dec 2nd, 2004, 1:24pm by mohn » |
|
|
|
|
gilazilla
|
Re: Motion detection
« Reply #4 on: Dec 2nd, 2004, 5:47pm » |
|
the image is static background (use 2 saved pictures) and writing in in Visual C++. Mohn, is the result good if use the sourcecode u given. From my understanding, if u just subtract current frame from a reference frame in picture ..the result may not be that good..that i why i use edge detection first. Am i right or wrong? please correct me. i hope i can see some sourcecode for C++,to solvemy problems?
|
|
|
|
|