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
 shewdetection not work

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
chunhua Posted - Jan 18 2016 : 22:11:34
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 19 2016 : 19:24:49
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