在warpPerspective之后获取图像的坐标

时间:2016-08-30 12:01:11

标签: python opencv

我将cv2.warpPerspective应用于imageA

result = cv2.warpPerspective(imageA, Ht.dot(H), (xmax-xmin, ymax-ymin))

并且该工作正常,但我需要像这样的新图像的坐标 enter image description here

也许有人知道如何计算?

1 个答案:

答案 0 :(得分:0)

old_points = [[[3.27589822,-24.28251266]],[[8.85595226,270.21176147]],[[408.69842529,258.427948]],[[398.14550781,-36.64953613]]]

new_points = cv2.perspectiveTransform(old_points,H)