Get coordinates of image after warpPerspective
<p>I apply cv2.warpPerspective to imageA</p>

<pre><code>result = cv2.warpPerspective(imageA, Ht.dot(H), (xmax-xmin, ymax-ymin))
</code></pre>

<p>and that work works correctly, but i need coordinates of new image like this
<a href="http://i.stack.imgur.com/z5sUl.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/z5sUl.jpg" alt="enter image description here"></a></p>

<p>Maybe anybody knows how to calculate?</p>

<p>old_points=[[[   3.27589822,  -24.28251266]],[[   8.85595226,  270.21176147]], [[ 408.69842529,  258.427948  ]],[[ 398.14550781,  -36.64953613]]]</p>

<p>new_points = cv2.perspectiveTransform(old_points, H)</p>

python opencv