Perspective correction of UIImage from Points

前端 未结 4 2022
孤独总比滥情好
孤独总比滥情好 2020-12-23 10:30

I\'m working on a app where I\'ll let the user take a picture e.g of a business card or photograph.

The user will then mark the four corners of the object (which the

4条回答
  •  暖寄归人
    2020-12-23 11:15

    From iOS8+ there is Filter for Core Image called CIPerspectiveCorrection. All you need to do is pass the image and four points.

    Also there is one more filter supporting iOS6+ called CIPerspectiveTransform which can be used in similar way (skewing image).

提交回复
热议问题