INNER CODE UNIT · Python
matrix
chonyy/ML-auto-baseball-pitching-overlay · src/generate_overlay.py:86
matrix = np.float32([[1, 0, -xoff], [0, 1, -yoff]])
corrected_image = cv2.warpAffine(offset_image.frame, matrix, (width, height))
return corrected_image