MATLAB Answers

Plot path of multiple objects using bounding box/centroids

2 views (last 30 days)
Paidi Vijay
Paidi Vijay on 14 Apr 2020
Edited: Paidi Vijay on 14 Apr 2020
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

Sign in to comment.

Answers (0)