I want to perform book dewarping, the source image is like that:
When I perform the 4 points OpenCV getperspective transform, the result looks like that:
But I have to get rid of the v shape it appears on top part of the book page is given above...
As a summary, I need to perform transform shape with arbitrary contour into rectangle. Are there any algorithms for this in OpenCV?
I need something like this: