[FEATURE] Maybe it will be beter on corner recognition.
For now taking fast pictures is really hard when some light drop down on a one side of your paper page, then app cant recognize the borders of a paper page.
I seen some similar app's and they basing on corners recognition.
Something like this:
https://github.com/jbttn/SimpleDocumentScanner-Android
Maybe implement those two methods?
ONS is based on corner recognition. I understand that the OP is asking for the possibility to move edges/corners manually for some wavy not even sheet formats.
Looks like the detection algorithm of the link provided is the same as Open Note Scanner, maybe with some different parameters.
The algorithm is contour detection after an adaptive threshold manipulation of the image. the largest 4-point contour is used as document.
There is an "angle detection" algorithm that ignores the full contour that can be used, but this needs more research and I don't have the time and expertise to work on it, patches are always welcome.