Re: Deskew Problems
Started by Maxim Sokhatsky at 06-17-2008 8:46. Topic has 4 replies.
|
|
06-17-2008, 8:46
|
Maxim Sokhatsky
Joined on 08-08-2006
Posts 6
|
|
|
We have a problem with following image on Deskew operation. We are using .NET and C API version of LT 15.0.
|
|
|
|
|
Report
|
|
|
|
06-17-2008, 17:24
|
GregR

Joined on 05-31-2006
In House
Posts 1,502
|
|
|
What is the file version of Leadtools.dll and ltkrn15u.dll that you are using?
What is the problem with Deskew? Could you explain in more detail? Is this image you've posted the before or after? Could you please post both so I can see exactly what the problem is?
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
06-18-2008, 7:36
|
Maxim Sokhatsky
Joined on 08-08-2006
Posts 6
|
|
|
LT VERSION 15.0.0.17 from "LIC - API - 1_18_2008" patch
Image after Deskew operation is attached
|
|
|
|
|
Report
|
|
|
|
06-18-2008, 7:45
|
Maxim Sokhatsky
Joined on 08-08-2006
Posts 6
|
|
|
http://evdo.synrc.com/download/AFTER_DESKEW.tif
|
|
|
|
|
Report
|
|
|
|
06-18-2008, 12:34
|
GregR

Joined on 05-31-2006
In House
Posts 1,502
|
|
|
The problem is that this image doesn't have much for the Deskew function to work with. Deskew relies on horizontal lines formed by text. Sometimes images can be mixed in with the text and the flag DSKW_DOCUMENTANDPICTURE will help, but this image doesn't have enough text to make up for it.
Therefore you will need to use L_DeskewBitmapExt which provides a few extra parameters to help you control the output. I used the parameters below to obtain the resulting image which I've attached:
L_DeskewBitmapExt(pBitmap, NULL, 3000, 10, 0, DSKW_DOCUMENTANDPICTURE);
This is basically telling Deskew that the maximum angle it can rotate is 3000.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Image Processin... » Re: Deskew Problems
|
|
Copyright LEAD Technologies, Inc. 2008
