Ask Your Question

Android Smooth perspective correction?

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

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

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

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:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


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

Seen: 992 times

Last updated: Nov 11 '14