For object tracking of many objects.....
4 次查看(过去 30 天)
显示 更早的评论
Dear Sir,
I am working now on "Object Tracking Project"... I found this website on Mathworks http://www.mathworks.it/it/help/vision/examples/motion-based-multiple-object-tracking.html and this website help me to know some information that I must know them about each object...This Program required from me to make this Function "tracks = initializeTracks" BUT... I found problem when I go to use this Function " predictNewLocationsOfTracks ()" where I don't know the "Length of tracks" so I find ERROR in the "FOR LOOP" in this function..... I would like to know "How can I know the number of tracks??"
Thank you very much
Have Great and Fantastic day
0 个评论
回答(1 个)
Walter Roberson
2013-2-19
The example has all the necessary code, including initializeTracks.
Please note that at the very end of the example, there is an "end" right above the "Was this topic helpful?". That "end" is needed. You need to put all the routines in the same file, and the structure should look like
function multiObjectTracking()
[... ] code here
function obj = setupSystemObjects()
[...] code here
end
function tracks = initializeTracks()
[...] code here
end
[...] more function / end pairs here
end %the stray "end" from the bottom of the page
When all the function/end pairs are created like this, "tracks" will become a variable that is shared with all of the routines.
6 个评论
Walter Roberson
2013-2-19
No, createNewTracks() turns detected objects into tracks. The program detects and tracks objects as it goes, and even deletes objects that have gone away for too long. It might take a few steps before a detected object is promoted to be a "track".
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image and Video Ground Truth Labeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!