File Exchange

image thumbnail

Motion Detection in a video

version 1.3 (1.14 MB) by

motion detection in a video or live objects

3.4375
27 Ratings

90 Downloads

Updated

View License

this programs identifies the moving objects in a video ( continious frames) and displays the moving object in a window.

when you execute this code just check whether the input video is supported in matlab r not. so for the testing i am attaching a zip file which contains the code and sample video that i have found in internet.

i am checking it regularly dont know if u r having problem in it

Comments and Ratings (53)

uma mahessh

not running.

dian satrio

??? Input argument "video" is undefined.

Error in ==> tracking at 2
if ischar(video)

input video
Warning: AVIREAD will be removed in a future release. Use MMREADER
instead.
> In aviread at 29
In run at 5
??? Error using ==> aviread at 81
Unable to locate decompressor Indeo5 to decompress video stream.
See Mathworks Technical Solution 1-4G50QZ for more info.

Error in ==> run at 5
avi = aviread('samplevideo.avi');

Iam getting error as follow when execute the code,
"Cell contents reference from a non-cell array object."
Iam using MatLab 2012a
please help me out

Hi
Im doing my m.tech project in video processing,based on the recognition of actions by the humans.So,i have to box rectangle for each part of the body of the human.For example hands,legs,head...if anyone knows based on this,could you please help me for the code.

fu yun

fu yun (view profile)

Error in redobjectracking (line 14)
hblob = vision.BlobAnalysis('AreaOutputPort', false, ... % Set blob
analysis handling

Gizem

Gizem (view profile)

mansouri

same problem as 536 blog. please give me the solution please!!

mansouri

hello when I run the project it returns me an error "Error using ==> run at 5
The file Requires the Following codec (s) to be installed on your system:
Indeo5 "I installed Indeo 5 but it is not compatible! can you help me please and tell me how I can do that the program runs smoothly. Thanks in advance

CHEN

CHEN (view profile)

I can't download this file.
mail:d26732477@yahoo.com.tw

rami

rami (view profile)

To read the video, convert it to wmv then try reading it in Matlab with:
objreader = mmreader(video);
vidFrames = read(objreader,[1 80]);

When I try and run it with the sample video I get the error "??? Error using ==> run at 5. Initialization failed. (No combination of intermediate filters could be found to make the connection)." and with other video another problem is an error ''disp (toplen)" it is not tracking though it taking input video...as in the loop its not taking the value of toplen....and also help me if this code can be used for real time object tracking......

sunil

sunil (view profile)

same problem as 536 blog. please give me the solution...

rami

rami (view profile)

Same problem as blog 536. Any solution ?

Megha Shesha

blog 536

blog 536

Sir i have downloaded the code and run it in matlab 7.8 (R2009a). it gives me the following error, can u correct it plzz ???

>> run
input video
??? Error using ==> aviread at 73
Unable to locate decompressor Indeo5 to decompress video stream.
See Mathworks Technical Solution 1-4G50QZ for more info.

Error in ==> run at 5
avi = aviread('samplevideo.avi');

Thanks.

Balamurali

Can you please send the details of this project to my mail t.balamurali86@gmail.com

ben

ben (view profile)

Plz, I can't download this file.
mail. mee89@hotmail.fr

ben

ben (view profile)

Plz, I can't download this file.

Jennifer

When I try and run it with the sample video I get the error "??? Error using ==> run at 5. Initialization failed. (No combination of intermediate filters could be found to make the connection)."

Anyone know what the cause is?

Meenu

Meenu (view profile)

Sir I have to track cars in the vediowhose back ground is not static... i am going to simulate in SCILAB... i am planning to follow your proposed algorithm... will it works for that... I tried to simulate in matlab 2009... but getting some error (reshape should contain same number of arguments always )

Nikolay S.

Nikolay S. (view profile)

While I appreciate the submitting, I must say the code fails to work, and is written in a non effective manner (memory utilization, repeating code, not commented, with many commented out lines). I'm working a while here to make it run :(

Manjunath NM

Gr8 work, but i have problem with the aviread function. I'm using Matlab R2008b
kindly help.

Saša Mandi?

Hi!
I need an algorithm which detect motion (face, arm, leg, etc.) - ROI in video!
If anybody have or know how to write it please contact me on my e mail!
I need to do this for my work an collage but i don't know how to write it!
Thank you very much!

,thank you for keeping such a good project.I wanted it to implement it with real video captured by live web cam. Is it possible you to send me the code or guide me about how to change the code, also can u send me some explanation of the algorithm you used. email: k.budabuss@gmail.com

M

M (view profile)

hi ,
i am new in MaTlab arena.....and i am interested about it. Now i m doing a coursework on Multimedea systems. Could any one tell me please how can I get segments the moving object and that superimposes each object its bounding box. Let me know in detail please. I am waiting for response.

thanx very much indeed.

Deepu aaa

Hello sir,thank you for keeping such a wonderful project which will help to beginners like me.I wanted it to implement it with real video captured by live web cam. Is it possible you to send me the code or guide me about how to change the code

tic

tic (view profile)

rimie asaari

Hi, could you recomend the suitable video codec that can work well with this matlab. i am trying to execute the code, but having problem with the codec. thanks..
my_email: mohdshahrimie@yahoo.com

Jimmy

Jimmy (view profile)

Hey, I just saw your post. The job you've done is excellent. I am doing a project which aim is to identify the position and sizes of cells in images and track these cells over a movie sequence. Can you give me some ideas and help of how to implement it. My e-mail is testbest1@yahoo.com. Thank you

Shima

Shima (view profile)

Hi, thank you for sharing your code.I executed it and it worked very well. For my project I need a real-time motion detection for the video from my webcam. Is it possible for you to send me the code or to guide me on how to change the code? I thank you in advance.
my email is " sh.lesoleilbrillant@gmail.com "

kiran malik

Hi Sir ;its realy great. I'm doing a project on this topic so i need your help if you can send me the details about its working and about how to track the moving object in the video. In short if you can send me a description of the algoritham that how its working , i'l be very much obliged .you can send it on hard_nut60@yahoo.com. thanks

ashok p

hai sir it works well.This will helpful for my project.can u send details of the paper......ashok_ece56@yahoo.co.in

Jim Petter

It's very grateful to download your demo,which is very useful for me!Thank you very much.However,after I read the code,I don't know the basic principle for you to track the target.Can you send the details of how it is working..
my email id zhangy0284@hotmail.com

Arun sr

hai sir it so gud....
working very well
i would like to do it as my project..
can you send me the details of how it is working..
my email id arusubbi1@gmail.com

Xu FengLiang

i am very appreciate yours sharing.
and hope you give me a explain about what is the result numbers mean

chiru jeeva

fine...... needs more....

santhosh kumar kadarla

sir thank u for keeping such a good project code in user available website....I am doing a project on real time object tracking in video images using C language..and I am trying to do it in real time (using live video) and hardware kit (IDK) ...to interface with these kits I need the code to be written in C language so I am facing problem in writing the code in C wich is necessary for Code composer studio .....I thnk u may know about all these things.....can u help me sir......further

zeshan ahmed

its a good code u have written , but the problem i am facin g is while interfacing it with live camera it gives an error ''disp (toplen)" it is not tracking though it taking input video... Can you help me with this? and whether u have tested your code for live videos using webcams...i will be really great full if u mial me back...at shani604@gmail.com....waiting for your reply

Norman V

Excellent!

Lukas junior

This is great Program, bath how can describe hoh working exactly this Motion detecion becasue I don`t understand this source soube

manos komninos

i can t work with video 640x480 why?

tr l

good, thank you!
but the limitation is that it can only track one moving object and the background should be still.

Amrita M

Good Project...have u tried this one with real-time video input??

Nguyen Quang

You may miss some m.files,could you up load again?
Thank you!

Satyendra Mishra

good project

Michalis Vousdoukas

Code is empty! Please try uploading again...

Eryanto Prabowo

I can't download this file

Joseph Hollmann

The link to the code does not appear to be working.

Updates

1.3

I have updated the code with a project report with other software. But the basic structure of the project report submitted is from matlab and can be help ful during the lab work

Updated to such that can be implemented in any language as i have used very few matlab function.

sorry for the inconvience. i have updated the files. check it now

MATLAB Release
MATLAB 7.4 (R2007a)
Acknowledgements

Inspired: Intellicam(Real time moving object tracker)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video