Esempio n. 1
0
 def trajectory_merge_predicate(i1, i2):
     return meets_before(detect_step*2)(i1, i2) \
         and iou_at_least(0.1)(i1.payload['trajectory'][-1], i2.payload['trajectory'][0])
Esempio n. 2
0
 def new_pred(i1: Interval, i2: Interval) -> bool:
     return meets_before(epsilon)(i1, i2) \
         and iou_at_least(iou_thres)(i1.payload[key][-1], i2.payload[key][0])