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

 채택된 답변

Image Analyst
Image Analyst 2013년 10월 19일
편집: Image Analyst 2013년 10월 19일

0 개 추천

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

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Track Objects and Estimate Motion에 대해 자세히 알아보기

질문:

2013년 10월 19일

댓글:

2013년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by