Skip to content

Commit

Permalink
Update positionalTracking.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyH2 committed Apr 11, 2024
1 parent 49817aa commit ee9eed8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions server/positionalTracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ class PositionalTracking {
return true;
}
return false;
});
});

tracking.ColorTracker.registerColor('brightblue', function(r, g, b) {
if (r < 120 && g < 120 && b > 150) {
return true;
}
return false;
});

this.color = new tracking.ColorTracker(['yellowgreen']);//yellow
this.color = new tracking.ColorTracker(['brightblue']);
this.color.setMinDimension(5);

tracking.track('#cameraFeed', scope.color);
Expand Down

0 comments on commit ee9eed8

Please sign in to comment.