INNER CODE UNIT · Python
offset
GeekAlexis/FastMOT · fastmot/detector.py:164
offset = (tile_offset + det_idx) * 7
label = int(det_out[offset + 1])
conf = det_out[offset + 2]
if conf < thresh:
break
if label_mask[label]:
xmin = (det_out[offset + 3] * w + tile[0]) * scale_factor[0]
ymin = (det_out[offset + 4] * h + tile[1]) * scale_factor[1]
xmax = (det_out[offset + 5] * w + tile[0]) * scale_factor[0]
ymax = (det_out[offset + 6] * h + tile[1]) * scale_factor[1]
tlbr = as_tlbr((xmin, ymin, xmax, ymax))
if 0 < area(tlbr) <= max_area:
detections.append((tlbr, label, conf))
tile_ids.append(tile_idx)
return detections, tile_ids
@staticmethod
@nb.njit(fastmath=True, cache=True)