Author |
Topic |
|
Elemental
USA
56 Posts |
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? |
|
xequte
38514 Posts |
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 |
|
|
Elemental
USA
56 Posts |
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? |
|
|
|
Topic |
|
|
|