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

 Akzeptierte Antwort

Image Analyst
Image Analyst am 19 Okt. 2013
Bearbeitet: Image Analyst am 19 Okt. 2013

0 Stimmen

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 Kommentare

luigi
luigi am 20 Okt. 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 ?
Image Analyst
Image Analyst am 20 Okt. 2013
Step 4 is unnecessary. You don't need to do edge detection. See my demo attached below.
luigi
luigi am 21 Okt. 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();
Image Analyst
Image Analyst am 21 Okt. 2013
You need to pass obj in to readFrame via the input argument list.
luigi
luigi am 21 Okt. 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
Image Analyst
Image Analyst am 21 Okt. 2013
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 am 25 Okt. 2013
Hi, how can I add a bounding box in your code?
Image Analyst
Image Analyst am 27 Okt. 2013
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
Image Analyst
Image Analyst am 27 Okt. 2013
I did, and I answered it.
luigi
luigi am 28 Okt. 2013
thank you very much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Gefragt:

am 19 Okt. 2013

Kommentiert:

am 28 Okt. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by