Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Deskew Problems
Started by Maxim Sokhatsky at 06-17-2008 8:46. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  06-17-2008, 8:46
Maxim Sokhatsky is not online. Last active: 6/24/2008 11:56:02 AM Maxim Sokhatsky

Top 500 Posts
Joined on 08-08-2006
Posts 6
Deskew Problems

Attachment: 4509-0632.tif
Reply Quote
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 is not online. Last active: 7/23/2008 3:26:54 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,502
Re: Deskew Problems
Reply Quote
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 is not online. Last active: 6/24/2008 11:56:02 AM Maxim Sokhatsky

Top 500 Posts
Joined on 08-08-2006
Posts 6
Re: Deskew Problems
Reply Quote
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 is not online. Last active: 6/24/2008 11:56:02 AM Maxim Sokhatsky

Top 500 Posts
Joined on 08-08-2006
Posts 6
Re: Deskew Problems
Reply Quote
http://evdo.synrc.com/download/AFTER_DESKEW.tif

   Report 
  06-18-2008, 12:34
GregR is not online. Last active: 7/23/2008 3:26:54 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,502
Re: Deskew Problems

Attachment: DeskewExt.tif
Reply Quote
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 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: Deskew Problems

Powered by Community Server, by Telligent Systems