I\'m trying to implement a cropping & perspective correction feature into an upcoming app. Whilst doing research, I came across:
Executing cv::warpPerspective f
I think the point correspondence in getAffineTransform is incorrect.
getAffineTransform
Check the point coordinates output by box.points(pts);
box.points(pts);
Why not just use p1 p2 p3 p4 to calculate the transformation?
p1 p2 p3 p4