Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created August 29, 2012 07:57
Show Gist options
  • Save eduardolundgren/3508250 to your computer and use it in GitHub Desktop.
Save eduardolundgren/3508250 to your computer and use it in GitHub Desktop.
tracking.js basic usage
var videoCamera = new tracking.VideoCamera().render().renderVideoCanvas();
videoCamera.track({
type: 'color',
color: 'magenta',
onFound: function(track) {
console.log(track.x, track.y, track.z);
},
onNotFound: function() {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment