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
|
|
|