This is sort of an unconventional use of Blender, but I'm straightening the distortion of scanned pages of a book, and I have the pages of the book scanned and numbered. What I want to do is use a plane with a simple UV map (two faces, one for the left page and one for the right). I've tested this concept out and it works for a single scanned image. I'm thinking I can run the scanned pages as an animated image sequence. What I'm not sure how to animate is the UV maps. Any idea how I can have a different UV map be called automatically for each frame, corresponding to its number? Maybe there is some way to use Python to update which UV map is used in the material's UV node?
UV maps are not animateable by default in Blender. However, there is an addon that can give you this functionality, it's called AnimAll.
Once you install this addon, you will have a toolbar in the Animation toolbar in the 3d Viewport on the left. This will allow you to insert UV keyframes and alter the UV Map to achieve the per-frame warping you require.