Here is what I got in 1min using the Office Lense app on windows.
You can import old photos, not just take new ones.

Might be a little easier than gimp.

Almost automatic, some tweaking is possible. Curvature near top seem to tricky...

[![office lens result][1]][1]


  [1]: https://i.sstatic.net/zC65D.jpg