On Apr 3, 1:36 am, lohith wrote:
On Apr 3, 2:58 am, Ramon F Herrera wrote:
On Apr 2, 6:39 am, lohith wrote:
On Apr 1, 2:55 am, Ramon F Herrera wrote:
I have 3 different implementations of image deskewing, and frankly I am not satisfied with their performance. The output files end up straight, but the process takes too long.
I know for a fact that this process can be done much faster because I have seen it in a couple of commercial programs (Adobe Acrobat Professional is one of them).
My files are B&W TIFF, sampled at 600dpi. They only contain text and tables. Nothing hard such as pictures.
Any pointers are most welcome.
TIA,
-Ramon F Herrera
Use leptonica library. This is very good, does it very fast.http://www.leptonica.com/
–lohith
I have looked at the leptonica library. It shows a lot of potential, indeed, and it has a lot of interesting reading.
It has a huge problem, however. It doesn’t build on Linux, and it doesn’t build on Windows. It has lots of error messages, particularly at link time. I am not talking about my experience only. I have checked with several colleagues and don’t know a single one that has been able to run the examples provided.
That’s too bad, because it seems that it could become a very popular library.
-Ramon
I am using it on fedora 8 ( linux ) system. It builds easily. Only that you have install the dev packages it uses, like gif, jpeg, png etc.
I have not tried it on windows.
Give it a try to compile and use it. It will be worth it. Just give the details of how you are installing, on what OS . Will try to help.
–lohith
I am going to ignore the Windows version for now, because that’s a different story altogether.
Leptonica installs easily on Linux, but I am having a problem building the samples. It seems that the authors make many calls to a function named "TIFFCleanup()" which is not present anywhere in the source code. Such function doesn’t seem to be part of ‘libtiff’ either. One of my attempts was to replace "TIFFCleanup()" by "TIFFClose()", but the applications cannot open TIFF files after such change.
My quick hack was simply to remove all the calls to TIFFCleanup(), and now the applications can be built. That solution, however, doesn’t sound too healthy (or pretty).
TIA,
-Ramon