offlinemot.utils_

Description

Functions

check_box(box, img_wh)

Test whether a box is within image size.

detect_overlaping(objects[, overlap_thresh])

Check if any object is overlaping within another in the list and delete one of them according to: 1) history length 2) detection probability 3) area respectively.

find_overlap(box1, box2)

Find the area of intersection between two boxes

load_model()

Download the Yolo network pretrained file for the example for the first time

read_tracks(filename)

Read the text file and load it into a dictionary with frame number as the keys and the objects and its positions as values.

resize(img[, scale])

Resize image by a scale factor

save_tracks(tracks_objs, filename)

Record the tracking results in a text file,

transform_detection(p0, detections, ...)

Convert the result of the detection from a cropped part of image to the original image coordinates.