# Answering the question:
# stackoverflow.com/questions/57399915/how-do-i-determine-the-locations-of-the-points-after-perspective-transform-in-t
import numpy as np
import cv2
import matplotlib.pyplot as plt
# load the image, clone it for output, and then convert it to grayscale
image = cv2.imread('sample.png')
pts1=np.float32([[867,652],[1020,580],[1206,666],[1057,757]])
pts2=np.float32([[700,732],[869,754],[906,916],[712,906]])
matrix=cv2.getPerspectiveTransform(pts1,pts2)
# Draw the point
p = (50,100)
cv2.circle(image,p, 20, (255,0,0), -1)
# Put in perspective
result=cv2.warpPerspective(image,matrix,(1500,800))
# Show images
plt.imshow(image)
plt.title('Original')
plt.show()
plt.imshow(result)
plt.title('Distorced')
plt.show()