offlinemot.objects_classes.TrafficObj.find_true_size

TrafficObj.find_true_size(new_box)[source]

Test evey box of the current position whether it moves in the horizontal or vertical direction or the closest to that and save the current size if so.

Parameters

new_box (list) – The current box to test its direction of movement