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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Deskewing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Elemental

USA
56 Posts

Posted - May 05 2014 :  14:59:39  Show Profile  Reply
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?

xequte

38514 Posts

Posted - May 06 2014 :  02:46:45  Show Profile  Reply
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
Go to Top of Page

Elemental

USA
56 Posts

Posted - May 06 2014 :  07:14:40  Show Profile  Reply
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: