Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: Extended Deskew performance problem.
Started by davidhan at 06-25-2008 23:46. Topic has 7 replies.

Print Search « Previous Thread Next Thread »
  06-25-2008, 23:46
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Extended Deskew performance problem.
Reply Quote

I have recently implement the extended deskew command for Image which falls more than 10 degrees.

 

DeskewCommand command = new DeskewCommand();
command.Flags = DeskewCommandFlags.DocumentImage | DeskewCommandFlags.ReturnAngleOnly;

command.Run(TheImage);
if (command.Angle >= -1000 && command.Angle <= 1000)
{
   //Only deskew within anticlockwise 10 degree and clockwise 10 degree
   command.Flags = DeskewCommandFlags.DeskewImage | DeskewCommandFlags.DocumentImage |  DeskewCommandFlags.DoNotFillExposedArea;
   command.Run(TheImage);
}
else
{
   DeskewExtendedCommand extCommand = new DeskewExtendedCommand();
   RasterColor fillColor = new RasterColor(0, 0, 0);
   if (command.Angle < 0)
   {
      extCommand.AngleRange = command.Angle * -1;
   }
   else
   {
   extCommand.AngleRange = command.Angle;
   }

   extCommand.AngleResolution = 2;
   extCommand.FillColor = fillColor;
   extCommand.Flags = DeskewExtendedCommandFlags.DeskewImage|DeskewExtendedCommandFlags.DoNotFillExposedArea | DeskewExtendedCommandFlags.RotateLinear | DeskewExtendedCommandFlags.DocumentImage;
   extCommand.Run(TheImage);
   }

 

I have did some testing and it shows that the performance is slow depends on the AngleResolution and AngleRange.

For the AngleRange i am using ReturnAngleOnly to get the angle detected from the API. However for AngleResolution it turn up slow if i am setting it to "2" , it takes about 12-15 sec to deskew the image. I am now using "10"  it still takes about 5 sec.

Is there any recomendation for setting AngleResolution or maybe AngleRange to tune the performance ?

Also sometimes i notice that the ReturnAngleOnly from DeskewCommand is returning wrong angle for some image which don't need deskew. But if i run the image in ExtendedDeskewCommand it works good. Most of our document are scaned document with text only,  is it because i am using DeskewCommandFlags.DocumentImage and it tend to return wrong angle ?

I have tried to use DeskewCommandFlags.DocumentAndPictures instead but it can't detect the scaned image with small angles like 5 degrees.

I am using Leadtools.dll version 15.0.1.3.

Regards,

David


   Report 
  06-26-2008, 9:30
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Extended Deskew performance problem.
Reply Quote
Can you please send me some sample images that show the issue? If you decided to send me the files please put them in aZIP or RAR file first. You can either attach th files here or send them to support@leadtools.com.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  07-03-2008, 4:03
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: Extended Deskew performance problem.

Attachment: 00000910.zip
Reply Quote

Hi Qasem Lubani,

I have attached the sample images for the issues, thanks.

Regards

David


   Report 
  07-03-2008, 10:36
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Extended Deskew performance problem.
Reply Quote

I have checked the issue here using the latest build of LEADTOOLS version 15 DLLs and I could not reproduce it. Can you please send your serial number to support@leadtools.com to get the latest patches download instructions?
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  07-08-2008, 0:43
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: Extended Deskew performance problem.
Reply Quote

Hi Qasem Lubani,

I have applied the patch but another error raise out when i try to use LineRemove or Deskew command.
The error is Raster Exception : "Document capability is required". It seems to me that some of the feature has been locked after i applied the patch, please advice.

Regards,
David


   Report 
  07-08-2008, 8:32
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Extended Deskew performance problem.
Reply Quote
David,

The LineRemove or Deskew command require you to have the Document Imaging Unlock keys. To obtain those keys you must sign a licensing agreement with our sales department.

As per Rumi instruction through the support ticket we have been working on, please sign the agreement and send it back to to him for the unlock keys.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  07-10-2008, 7:33
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: Extended Deskew performance problem.
Reply Quote

Hi Qasem Lubani,

We have brought the license, it don't make sense if we need to sign an agreement with sales again.
But anyway, if it is really the case, could you let me know which form exactly we need to sign?
Is there any place for me to download it or i can use DocImg_runtime_15.pdf ?

Regards,
David


   Report 
  07-10-2008, 10:34
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Extended Deskew performance problem.
Reply Quote
Please send an email to sales@leadtools.com with this case and you will be forwarded the documents to sign with instructions.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: Extended Deskew performance problem.

Powered by Community Server, by Telligent Systems