@ -10,6 +10,10 @@ def recvall(sock, n):
data += packet
return data
def find_closest(target):
global moves
return min(moves, key=lambda t: abs(t[0] - target))
def resize_with_padding(image, target_size=(640, 640)):
h, w = image.shape[:2]
target_w, target_h = target_size
The note is not visible to the blocked user.