Skip to content

Commit 497e2ba

Browse files
Removes type attribute from Tracker implementations
1 parent c5176d3 commit 497e2ba

2 files changed

Lines changed: 2 additions & 24 deletions

File tree

src/ColorTracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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

src/Tracker.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
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.
@@ -39,14 +25,6 @@
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

0 commit comments

Comments
 (0)