Ask Your Question
0

create bounding box after background subtraction

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

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
1

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

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

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

Stats

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

Seen: 1,241 times

Last updated: Jul 03 '15