Ask Your Question

create bounding box after background subtraction

asked 2015-07-02 07:56:11 -0500

I'm trying to track people by performing background subtraction and passing the bounding box to correlation based tracker. Correlation based trackers need an initial bounding box to start tracking. How can I create a bounding box after performing background subtraction and pass it to the tracker? I'm using python. Any help would be greately appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-03 02:36:25 -0500

updated 2015-07-03 03:39:40 -0500

You could use cv::minAreaRect to get the smallest (rotated) rectangle that contains your contour.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-07-02 07:56:11 -0500

Seen: 1,005 times

Last updated: Jul 03 '15