Image Processing, Opencv, Python, Mathematics, 3d Modeling.
np.float32([[0, 0], [img.shape[1], 0], [img.shape[1]*0.8, img.shape[0]], [img.shape[1]*0.2, img.shape[0]]]) # Calculate the perspective transformation matrix M = cv2.getPerspectiveTransform(src_pts, dst_pts) # Apply the perspective transformation to the image skewed_img = cv2.warpPerspective(img,