@@ -28,6 +28,13 @@ def bbox_round(src):
return x, y, w, h
def bbox_center(bbox):
x = round(bbox[0] + bbox[2]/2)
y = round(bbox[1] + bbox[3]/2)
return x, y
def bbox_extend(bbox: cv2.typing.Rect, factor: float = 0):
we2 = bbox[2]*factor/2
he2 = bbox[3]*factor/2
The note is not visible to the blocked user.