offlinemot.utils_.check_box

offlinemot.utils_.check_box(box, img_wh)[source]

Test whether a box is within image size.

Parameters

box (list) – A list of [x,y,width,height] where x,y in the top-left point coordinates

Returns

A boolean indicating whether the box inside the image dimensions or not.

Return type

bool