Ask Your Question

Revision history [back]

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/45761682/opencv-warpperspective-meaning-of-elements-of-homography

https://stackoverflow.com/questions/22745220/interpolate-between-original-and-transformed-image