[ SM3117 ] - [ Class 13 ] - WebCamXtra

Class 13 - Augmented Reality - More WebCamXtra

 

1

Colour tracking commands

  • trackColor
  • trackColorBounds

 

2

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

 

3

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.

sample movie