Ask Your Question
0

Android Smooth perspective correction?

asked 2014-11-11 22:57:53 -0600

HasanGhaforian gravatar image

Hello.I can correct perspective of rotated card that is in image by the way that is described in Automatic perspective correction for quadrilateral objects.It is fine and works well.But the result of correction appears suddenly.I want to do that smoothly.I mean I want to move card smoothly (not suddenly) to front us,until card be full screen.Excuse me for poor description,but you can see similar process in CamScanner after click on confirm button on interesting area selecting Activity.

Thank you for your attention.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-28 10:31:45 -0600

HanClinto gravatar image

Hi Hasan, you'll need to use some method for animation.

Unless you want to use a 3D graphics library, you'll probably want to call warpPerspective multiple times -- one for each frame with an interpolated perspective transform for each step of the animation. See these two answers for examples:

https://stackoverflow.com/questions/4...

https://stackoverflow.com/questions/2...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-11-11 22:57:53 -0600

Seen: 1,388 times

Last updated: Nov 11 '14