Standard Watchers

NeuralNetworkClassifier

Uses a convolutional neural network to classify objects in the area watched by this classifier. The area is defined by the dimension of the neural network and the center of the bounding box of the contour registered from JS.

Parameters

1
{
2
neural_network_classifier: string // required
3
}
Copied!

Usage:

1
{
2
name: 'NeuralNetworkClassifier',
3
params: {
4
neural_network_name: <some_NN_name> // e.g 'fin_all_small'
5
}
6
}
Copied!

MovementBasedSegmenter

Like NeuralNetworkClassifier, MovementBasedSegmenter uses a convolutional neural network to classify objects.
MovementBasedSegmenter can detect (i.e locate and classify) multiple objects at a time in the specified watcher shape.

Parameters

1
{
2
neural_network_classifier: string, // required
3
4
// Accept only objects with contours whose circumscribed circle has a radius
5
// between "min_radius" and "max_radius". In adition to that, the ratio between the contour
6
// and the circumscribed circle must be larger than "min_area_ratio".
7
8
filter_circle: {
9
min_radius: integer,
10
max_radius: integer,
11
min_area_ratio: float // [0, 1] where 1 is a perfect circle
12
},
13
14
// Accept only object with contours whose circumscribed rectangle (bounding box)
15
// has a ratio of the short/long sides between "min_ratio" and "max_ratio".
16
17
filter_rect: {
18
min_ratio: float, // (0, 1], the closer to 1, the more "square" the contour must be
19
max_ratio: float, // same as above
20
},
21
22
// Threshold value which is used to determine if a pixel is different from the
23
// table, therefore it is considered movement.
24
// Values in range [1, 255). The higher the value, the more contrast there should be between
25
// the table and the object.
26
27
filter_tresh: int
28
}
Copied!

Usage:

1
{
2
name: 'MovementBasedSegmenter',
3
params: {
4
...
5
}
6
}
Copied!

DepthClassifier

Detects any object on or above the surface defined by the watcher's shape, returning contour information.

Usage:

1
{
2
name: 'DepthClassifier',
3
params: {
4
frames_until_stable: int // currently experimental
5
}
6
}
Copied!
Last modified 2yr ago