eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.43k stars 1.44k forks source link

how to unregister color from all my colors? #254

Open maordany opened 6 years ago

maordany commented 6 years ago

i add a green and blue color and I want to remove one of the colors. to add color i use this code.

tracking.ColorTracker.registerColor('blue', function (r, g, b) {
    if ((b - r) >= 30 && (b - g) >= 10) {
        return true;
    }
});

how can i remove one of the colors and how can i remove all the colors?