cecile-supercool-tracker 0.0.1

Machine learning framework for building object trackers and similarity search engines
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from similari import nms, BoundingBox

if __name__ == '__main__':

    print("With score")
    bbox1 = (BoundingBox(10.0, 11.0, 3.0, 3.8).as_xyaah(), 1.0)
    bbox2 = (BoundingBox(10.3, 11.1, 2.9, 3.9).as_xyaah(), 0.9)
    res = nms([bbox2, bbox1], nms_threshold = 0.7, score_threshold = 0.0)
    print(res[0].as_ltwh())

    print("No score")
    bbox1 = (BoundingBox(10.0, 11.0, 3.0, 4.0).as_xyaah(), None)
    bbox2 = (BoundingBox(10.3, 11.1, 2.9, 3.9).as_xyaah(), None)
    res = nms([bbox2, bbox1], nms_threshold = 0.7, score_threshold = 0.0)
    print(res[0].as_ltwh())