how to associating the detections corresponding to the same object over time
1 回表示 (過去 30 日間)
古いコメントを表示
hi everyone I have a project that I want to calculate speed and counting vehicle in a video. I have done the Background subtraction step, now I want to associating the detections corresponding to the same object over time. I read this tutorial http://www.mathworks.com/help/vision/examples/motion-based-multiple-object-tracking.html and the result of that code is what I want to but in the first step, I want to replace the foreground detection step that code by my background subtraction. may you help me?
0 件のコメント
採用された回答
Dima Lisin
2014 年 9 月 8 日
Hi Hai,
you can put your own background subtraction code into the detectObjects replacing the code that computes the mask.
3 件のコメント
Dima Lisin
2014 年 9 月 9 日
編集済み: Dima Lisin
2014 年 9 月 11 日
Hard to say without seeing your entire code. The reason you do not see any variables, is because this example is a function, not a script. If you want to use VideoReader instead of vision.VideoFileReader, then you have to use the readFrame method to read a frame, and the hasFrame method to check if there are any frames left. Look at the documentation for VideoReader. By the way, is there any reason you don't want to use vision.VideoFileReader? Can you run the example as is?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!