Open
Description
Under the title/subheading «Step 2: Choose what you want to play with», this code is supposed to «request your camera and track magenta, cyan and yellow colors that appear in front of it.»
However, nothing happens when I load this page in Firefox or C 4F2A hrome.
Anyone?
Code:
<!doctype html>
colors.on('track', function(event) {
if (event.data.length === 0) {
// No colors were detected in this frame.
} else {
event.data.forEach(function(rect) {
console.log(rect.x, rect.y, rect.height, rect.width, rect.color);
});
}
});
tracking.track('#myVideo', colors);
</script>
Metadata
Metadata
Assignees
Labels
No labels