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 ?
采纳的回答
Image Analyst
2013-10-19
编辑:Image Analyst
2013-10-19
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 个评论
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.
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.
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.
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
thank you so much.....can you see this link please ? http://www.mathworks.it/matlabcentral/answers/91313-undefined-function-or-method-assigndetectionstotracks-for-input-arguments-of-type-double
I did, and I answered it.
thank you very much
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Track Objects and Estimate Motion 的更多信息
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
