BlobTpl Type
The BlobTpl is used to describe the shape and size of blobs. Such blobs can then be found on screenshots using the Vision API’s .findBlobs method.
If you want to look for blobs of a certain color, isolate that color in your Image beforehand. To do so, use the Image type’s .isolateColorRange method. After doing so, only blobs of the desired color are left.
Table of Contents
Creating a BlobTpl
The BlobTpl’s constructor takes up to 11 numeric arguments in the following order. Grouped arguments must be provided at the same time.
| Position | Type | Range | Description |
|---|---|---|---|
| 1 + 2 | Number | 0 <= min <= max | Min area, Max area |
| 3 + 4 | Number | 0.0 <= min <= max <= 1.0 | Min Circularity, Max Circularity |
| 5 + 6 | Number | 0.0 <= min <= max <= 1.0 | Min Convexity, Max Convexity |
| 7 + 8 | Number | 0.0 <= min <= max <= 1.0 | Min Inertia, Max Inertia |
| 9 + 10 | Number | 0 <= min <= max <= 255 | Min Threshold, Max Threshold |
| 11 | Number | 1 <= threshold step <= max threshold - min threshold | Threshold Step |
BlobTpl methods
TODO …there are getters and setters for all parameters mentioned in the Creating a BlobTpl section.