Class 13 - Augmented Reality - More WebCamXtra
Colour tracking commands
TrackColor
member("webcam").trackColor(col, tol);
where col is a color object like color(255,0,0), tol is an integer for tolerance level.
The command will return a point showing the colour block matched.
sample movie
TrackColorBounds
member("webcam").trackColorBounds(col, tol);
where col is a color object like color(0,255,0), tol is an integer for tolerance level.
The command will return a rect showing the bounding box of the colour block matched.