First time here? Check out the FAQ!
answered 2020-03-23 10:03:04 -0600
Here you have a good example and explanation of dewarping: https://mzucker.github.io/2016/08/15/page-dewarping.html There are plenty of examples of code for this kind of problem, but I like the one above.