File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11( function ( ) {
22 /**
3- * ColorTracker utility.
3+ * ColorTracker utility to track colored blobs in a frrame using color
4+ * difference evaluation.
45 * @constructor
56 * @extends {tracking.Tracker }
67 */
78 tracking . ColorTracker = function ( ) {
89 tracking . ColorTracker . base ( this , 'constructor' ) ;
910
10- this . setType ( 'color' ) ;
1111 this . setColors ( [ 'magenta' ] ) ;
1212 } ;
1313
Original file line number Diff line number Diff line change 55 */
66 tracking . Tracker = function ( ) { } ;
77
8- /**
9- * Specifies the tracker type.
10- * @type {string }
11- */
12- tracking . Tracker . prototype . type = null ;
13-
14- /**
15- * Gets the tracker type.
16- * @return {string }
17- */
18- tracking . Tracker . prototype . getType = function ( ) {
19- return this . type ;
20- } ;
21-
228 /**
239 * Fires when the tracker founds a target into the video frame.
2410 * @param {Video } video The `Video` instance being tracked.
3925 */
4026 tracking . Tracker . prototype . onNotFound = function ( ) { } ;
4127
42- /**
43- * Sets the tracker type.
44- * @param {string } type
45- */
46- tracking . Tracker . prototype . setType = function ( type ) {
47- this . type = type ;
48- } ;
49-
5028 /**
5129 * Tracks the pixels on the array. This method is called for each video
5230 * frame in order to decide whether `onFound` or `onNotFound` callback will
You can’t perform that action at this time.
0 commit comments