measure positions

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mrsiro
Posts: 1
Joined: 2018-06-17T19:04:38-07:00
Authentication code: 1152

measure positions

Post by mrsiro »

Hello,
first: english is not my native language, so I try to keep my posts short and precise. What may not allways succeed :-)
Ok,
Iwould like to measure positions with IM.
Background: I must verify the positions of several textblocks printed on documents.
The images of the documents will come by scanner or (better)camera.
So it would be helpfull to find f.e. left and upper borders of such blocks. If possible metric.
The blocks must be printed within a tolerance of about 1mm up/down - /left/right and there should be a warning when the block is outside of this tolerance.
So I only need to find the positions, everything else I may realize with PERL.

Many thanks in advance for any help
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: measure positions

Post by snibgo »

ImageMagick works with pixels, not millimetres, but converting between them is trivial.

What is the visual difference between "text blocks" and the rest of the document? IM needs to be told what to measure, that identifies where text blocks occur.

Perhaps you can link to sample documents.
snibgo's IM pages: im.snibgo.com
Post Reply