Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, May 16, 2011 6:30:16 AM(UTC)
Benjamin

Groups: Registered
Posts: 16


Hello,

I'am using Leadtools V16.5 and VS2010 C#4.

I need to deskew an image but the DeskewCommand does nothing. I try to configure the command with the flags property but it change nothing.

Please, can you try to process the images in attachment and give me your flags parameter ?

Thanks for the support.

Benjamin
File Attachment(s):
images.zip (464kb) downloaded 31 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, May 16, 2011 12:47:30 PM(UTC)

Ryan  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Hello,

LEADTOOLS did not did not introduce the .NET 4.0 assemblies until v17.


However in .NET 3.5 I was able to deskew these images by just passing
DeskewImage flag and running the command. Exactly as the documentation example does it.
command.Flags = DeskewCommandFlags.DeskewImage | DeskewCommandFlags.DoNotFillExposedArea;


Deskew Command Documentation:
http://www.leadtools.com/Help/LEADTOOLS/v16/DH/PO/Leadtools.ImageProcessing.Core~Leadtools.ImageProcessing.Core.DeskewCommand.html

Deskew Command Flags:
http://www.leadtools.com/Help/LEADTOOLS/v16/DH/ID/Leadtools.Services.ImageProcessing.DataContracts~Leadtools.Services.ImageProcessing.DataContracts.DeskewCommandFlags.html



I'd recommend playing with different diskew flags in our Document Clean Up demo. The flags are set in the Deskew Dialogue.
 
#3 Posted : Tuesday, May 17, 2011 1:53:56 AM(UTC)
Benjamin

Groups: Registered
Posts: 16


Ok, thanks for the suport.

I have a second question about this image.
We are sanning a book and as you can see, the text have a small curving angle. This is due to the bookbinding. How can i process the image to realine the text ?

You can find in attachment the same image after the deskew and cleaning processing.
File Attachment(s):
images.zip (464kb) downloaded 35 time(s).
 
#4 Posted : Tuesday, May 17, 2011 6:22:43 AM(UTC)

Ryan  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

The toolset doesn't have any tools to do this automatically.

The images you included only seemed to have very minute curving, if any. Are you trying to clean up the images for OCR? That small of a curve shouldn't effect OCR results.

Regardless, there might be a few methods you could go about this. One suggested would be to use the BendCommand.


http://www.leadtools.com/Help/LEADTOOLS/v16/DH/PS/topic83.html


As I said though this isn't automatic. Obviously it would vary from image to image.
 
#5 Posted : Tuesday, May 17, 2011 6:48:51 AM(UTC)
Benjamin

Groups: Registered
Posts: 16


Ok, I will take a look at the BendCommand.

I am not using the OCR process, it's only for generate TIFF Group 4 and PDF.
It should be cool if Leadtools include a tool for processing automaticaly the text alignment.

Thanks for the support and your amazing library !

Benjamin
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.346 seconds.