hzeller / augenmass

Measure relative sizes on background image.
103 stars 20 forks source link

Augenmaß

Given a background photo, this tool allows you to draw lines on top of it whose relative lengths in pixel are shown. Double-clicking on a line allows you to set a 'reference size', all the other numbers are adjusted accordingly.

Use this for instance by taking a picture of something with a ruler in the same focus; use the ruler to set a reference size and now you have correct measurements for the other parts in the picture.

In this example, we mark a known distance (40mm) so that we can get the value for the distance to be measured (12.70mm). sample-image

Basic UI:

(Note, I don't really know JavaScript, this is essentially my first JavaScript experiment. if you see things to improve, just send me a pull request. See also TODOs for inspiration).