def METHOD_NAME(frame, crop_size):
    img_h, img_w, _ = frame.shape
    x0 = int(round((img_w - crop_size[0]) / 2.))
    y0 = int(round((img_h - crop_size[1]) / 2.))
    x1 = x0 + crop_size[0]
    y1 = y0 + crop_size[1]
    return frame[y0:y1, x0:x1, ...]