Plot path of multiple objects using bounding box/centroids
2 views (last 30 days)
Show older comments
I would like to generate paths for multiple objects detected in a video. Can anyone please help. Thanks
% Generate centroid and bounding box of objects
[~, centroids, bbox] = hblob.step(th_image);
result = insertShape(frame, 'Rectangle', bbox, 'Color', 'green');
% Display the number of cars found in the video frame
result = insertText(result, [10 10], numCars, 'BoxOpacity', 1, 'FontSize', 14);
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!