motion tracking object matlab

I'm italian student,sorry for my english. Dissertation title is :motion tracking object in a video with matlab. Can you help me ?

 Risposta accettata

Image Analyst
Image Analyst il 19 Ott 2013
Modificato: Image Analyst il 19 Ott 2013

0 voti

Get the Computer Vision System Toolbox: http://www.mathworks.com/products/computer-vision/description5.html Of course you'll have to do some kind of different tracking than is built into MATLAB because a dissertation is supposed to be your own new-to-the-world invention, not just applying some algorithm that already exists.

11 Commenti

luigi
luigi il 20 Ott 2013
Hi, I know what to do but I have difficulty using matlab.I my steps are: 1. The input video is converted into frames. We capture two consecutive frames, i.e. frame N and frame N+1. 2. We convert each of these frames to gray scale. 3. We subtract frame N from frame N+1, to generate the difference image. 4. We run canny edge detection technique 5. We identify moving edge segments and also draw a bounding box over it. 6. The centroid is then calculated. 7. We can then calculate the distance moved by the object by calculating distance moved to the total frame rate. are the right steps ?
Step 4 is unnecessary. You don't need to do edge detection. See my demo attached below.
luigi
luigi il 21 Ott 2013
I did a test code but when I run the code I get this error
??? Undefined variable "obj" or class "obj.reader.step".
Error in ==> tesi>readFrame at 43 frame = obj.reader.step();
Error in ==> tesi at 10 frame = readFrame();
You need to pass obj in to readFrame via the input argument list.
luigi
luigi il 21 Ott 2013
Sorry,but i have another problem with this error. ??? Undefined variable "obj" or class "obj.detector.step".
Error in ==> tesi>detectObjects at 49 mask = obj.detector.step(frame);
Error in ==> tesi at 11 [centroids, bboxes, mask] = detectObjects(frame);
I might have to replace frame with obj,because frame and obj are defined
I can't go over every single error with you. You basically have to make sure that whenever you go to use a variable that it exists in the scope of the function you want to use it in. That might mean passing it in to the function.
luigi
luigi il 25 Ott 2013
Hi, how can I add a bounding box in your code?
It's not my code - it's demo code from the Mathworks. If you click on the link I gave you'll see a link to the code: http://www.mathworks.com/help/vision/examples/face-detection-and-tracking-using-the-klt-algorithm.html
I did, and I answered it.
luigi
luigi il 28 Ott 2013
thank you very much

Accedi per commentare.

Più risposte (0)

Richiesto:

il 19 Ott 2013

Commentato:

il 28 Ott 2013

Community Treasure Hunt

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

Start Hunting!

Translated by