Detect object in motion

Hi all,
Having a set of frame, I want to detect which object is in movement. I don't need nothing more than a mask that for each frame is positive just for that object. I also believe that it will be fine to detect it between 2 frames and I also don't need small objects in movement, but just one that are significantly noticeable.
There is a quick way to do this ?
Thank you very much

回答(1 个)

Image Analyst
Image Analyst 2014-2-8

1 个投票

See my demo, attached below in blue, where I calculate the difference between a frame and the average of N prior frames. Adapt it as needed.

4 个评论

My problem is not detecting whether a movement occurred or not, is being able to get a mask identifying the whole object who has moved (and not only the moved part) both in the current and previous frame
So if there's a video of me standing perfectly still wearing a white short sleeved shirt and white pants in a white room and all I'm moving is my forearm, you'd like to extract all parts of me, even the non-moving parts? That is a very very challenging problem. Then with the same algorithm you'd want to also find me as I walk onto the green lawn? And as the coulds morph and move across the sky, you'd also like to detect the edges of those? What would you want to track in a video like this video of a solar flare on a spinning sun? Basically I don't know and your question is too broad and ambiguous. You need to narrow it down. You could use color segmentation, optical flow, frame differencing, or other methods (image understanding, etc.) Maybe you can try the computer Vision System Toolbox: http://www.mathworks.com/products/computer-vision/
Well I'm not searching things that general. All my images are grayscale, also is a specific case I've an object which colour is fairly different from background and it's moving one frame to another. I've got few of this situation, but let's say for example a guy walking down a road and the background is usually bright. Note that thresholding is not working as also other sparse element have such color.
Well that's all I have for you: my demo and a link to the CVS Toolbox. So good luck.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by