mclear / html5-measurer

Use your webcam and a credit card to measure the size of an object, in this example, a ring finger.
12 stars 3 forks source link

allow pure modular implementation #2

Open JohnMcLear opened 11 years ago

JohnMcLear commented 11 years ago

IE:

<script src="measurer.js"></script>
var measure = new Measurer();
measure.create("targetDiv"); // can do it like this because getUserMedia is limited to one instance of browser/OS.
measure.on('success', function(measurement){
  alert("Got a measurement of", measurement);
  measure.destroy();
});