OpenCV Transform Shape with Arbitrary Contour into Rectangle [closed]
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:
see https://github.com/mzucker/page_dewarp
thanks for your reply but I already tried it however it did not work for my case, you can see the result for the input image I gave at the top of this page: https://user-images.githubusercontent...
could you share the code you used so far and the original image
maybe this: (?) https://docs.opencv.org/3.4/da/d0c/tu...
Hello. Did you acomplished the transformation? I hava a similar problem.