ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Deskewing

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Elemental Posted - May 05 2014 : 14:59:39
I am trying to combine Proc.SkewDetection and Proc.Rotate, as shown in the example, to deskew images with text on them. I have tried various parameters on one particular image. The parameters I submit in SkewDetection either seem to have no effect, or too large of an effect. When I put 100 as the ResampleWidth, I get a pretty good image, but I don't know why. So, what does this ResampleWidth parameter mean?
2   L A T E S T    R E P L I E S    (Newest First)
Elemental Posted - May 06 2014 : 07:14:40
What I've noticed, though, is that when I do set ResampleWidth to 0, although it takes a long time, it doesn't produce any noticable effect. When I examine the result at run-time, it comes up with a degree that is just less than 0. But supplying 100 to ResampleWidth provides a much better rotation. Isn't that weird?
xequte Posted - May 06 2014 : 02:46:45
Hi

Because SkewDetection can be such a slow process, the first three parameters of the SkewDetection method are to help speed up the process.

ResampleWidth in particular reduce the size of the image in memory to speed up the processing, but obviously the smaller the image the less accurate is the skew detection.

Alternatively you can set ResampleWidth to zero and then the full image is analyzed. Very accurate, but obviously very slow.

See more at:

http://www.imageen.com/help/TImageEnProc.SkewDetection.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com