Perspective Transform + Crop in iOS with OpenCV

前端 未结 2 494
梦毁少年i
梦毁少年i 2020-12-12 12:32

I\'m trying to implement a cropping & perspective correction feature into an upcoming app. Whilst doing research, I came across:

Executing cv::warpPerspective f

2条回答
  •  情书的邮戳
    2020-12-12 12:50

    I think the point correspondence in getAffineTransform is incorrect.

    Check the point coordinates output by box.points(pts);

    Why not just use p1 p2 p3 p4 to calculate the transformation?

提交回复
热议问题