Git Product home page Git Product logo

augenmass's Introduction

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:

  • Open augenmass.html in your browser.
  • Choose background image file. (Nothing is uploaded anywhere, this is just used locally by your browser).
  • Draw lines on top of your background image. First click first point, second click second point. ESC key if you want to cancel the current line.
  • The loupe shows a magnified view of the area the mouse cursor is covering.
  • Double-click on a number to enter some value. The other lines are automatically re-calculated according to that factor.
  • Right-click to either abort the current line or delete the closest line.
  • If you start the line exactly where another one stopped, the angle between the lines is indicated. The loupe functionality will help you match the points. Triangles...
  • You can download the result as transparent overlay PNG image.

(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).

augenmass's People

Contributors

hzeller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

augenmass's Issues

Can't delete

Anyway to add functionality to delete unwanted measurements?

WebRTC capturing of an image

Through WebRTC it's possible to capturing an image. This would allow a phone or webbrowser on a PC to capture an image through the camera (when available).

Change image scale/zoom to appropriate value

Hi @hzeller this is a great tool! Did you know that there's a community that's very interested in using your tool for a really wonderful purpose. Lots of children are born with a partial hand (a palm but no fingers). For most of them a prosthetic device is too costly, especially given that they quickly outgrow it. A 3D printable version can be made for under $50.

The enablingthefuture.org community is providing 3D printable design files, 3D printing services and lots of tips and tricks.
Image based information retrieval tools can be important for this, e.g. see this tutorial:
https://www.youtube.com/watch?v=4SJxqFE5bDM

Anyway, a feature that I'd like to see (if you don't have the time to develop it, someone else might) is the ability to scale the image down (like a zoom out). If you have a high-res photo the scaling isn't great to see the 'bigger picture'...

FYI I've just started hosting a version of augenmass here, where we also host a front-end for OpenSCAD:
https://e-nable.youmagine.com/measure

I'd like to customize it to fit into this wizard like interface as a step in the process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.