How to resize the Bounding box of the tracking object

Dear all,
I’m trying to track the moving object in the video by selecting bounding box which is small in size when it is away from camera but whenever it come nearest to camera the object size is big but my bounding box is small only (whatever I selected initially).
May I know any methods or steps to resize my bounding box according to the object size.
Please do the needful, Thanks in advance.


what are you using for tracking ?
same trackers can adjust the bounding box, others (like MOSSE) can’t

bbox_w_new = bbox_w_orig*(object_w_new/object_w_orig)
bbox_h_new = bbox_h_orig*(object_h_new/object_h_orig)