i have this bug
the resolution is to call Leptonica's pixFindSkewAndDeskew().
but the leptonicaApi(in the wrapper) doesn't contain such method , i tried to added it myself but with no success... If you can add it or give me some instructions how to do this..
OK I'll see if I can add the pixFindSkewAndDeskew function so we have a template to work off.
Added descew functions from leptonica - #11
I've checked in a first cut for the descew functionality (see test case for usage). Could you please let me know if this meets your requirements and any comments on API would be most welcome as I would like to lock this down once we're happy with it.