Type: BlobTpl


The BlobTpl is used to describe the shape and size of blobs. Such blobs can then be found on screenshots using the Vision APIs .findBlobs method.

If you want to look for blobs of a certain color, isolate that color on your Image in beforehand. To do you used the Image types .isolateColorRange method. After doing so only blobs of the desired color are left.

Table of Contents

Creating a BlobTpl

The BlobTpls constructor takes up to 11 numeric arguments in the following order. Grouped arguments must both 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 setter for all parameters mentioned in the Creating a BlobTpl section.