First time here? Check out the FAQ!

Ask Your Question
1

Tracker variable bounding box size

asked Feb 16 '17

kevin_lomax gravatar image

I'm trying out different trackers implemented in OpenCV 3.2 (e.g. MIL, TLD, KCF) on videos where the size of the tracking object changes in 2D plane due to perspective distortion. More precisely, the tracking object is a vehicle which starts moving very far from the camera, at one end of a road, and approaches to the camera (hence becomes bigger) as the time passes.

However, I realized that except for TLD, all the other trackers keep the size of the bounding box (i.e. ROI) same although the size of the tracked object changes dramatically. Is that the intended behavior of these trackers? Is there a parameter I can change to make the bounding box sizes variable? How is this issue typically resolved in practical tracker implementations? I can imagine this can cause some problems when an object starts approaching (moving away from) the camera and appears bigger (smaller) on the image.

Thanks.

Preview: (hide)

Comments

Hey Steven,

I'm new to OpenCV, could you please explain in more detail what you do to combat this problem? I'm not familiar with local segmentation.

Thanks, Matt

furlongmt gravatar imagefurlongmt (Sep 21 '17)edit

2 answers

Sort by » oldest newest most voted
1

answered Feb 16 '17

Yes that is the intended behaviour, because there is no way of predefining how a window will grow. What I usually do is applying some rough local segmentation and like each 20th frame, I adjust the tracker's region of interest.

Preview: (hide)
0

answered May 28 '18

Although this is the intended behaviour for most of the trackers, along with the TLD tracker, both the GOTURN and Median Flow tracker adjust the scale of the bounding boxes as they track.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Feb 16 '17

Seen: 3,129 times

Last updated: Feb 16 '17