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
 shewdetection not work
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

chunhua

China
5 Posts

Posted - Jan 18 2016 :  22:11:34  Show Profile  Reply
hi
i am use fowllowing code to rotate picture,but not change.

angle := img1.Proc.SkewDetection(img1.Bitmap.Width div 4, 30, 0.1, false);
img1.Proc.Rotate( angle, true );
img1.Bitmap.Modified := True;
img1.Update;



xxx

xequte

39053 Posts

Posted - Jan 19 2016 :  19:24:49  Show Profile  Reply
Hi

SkewDetection uses an algorithm that works on printed text within a document. This image does not contain sufficient text for it to work well. As this document contain alignment marks (black boxes in corners), I think you would be better to write a method that scanned down the page until it found the top alignment marks at the left and right. By comparing the position of the left and right marks, you could calculate the necessary rotation.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: