class Blob – Blob object
The blob object is an attrtuple returned by Image.find_blobs(). It has 23
fields accessible as attributes or by index [0..22].
- class image.blob
Please call
Image.find_blobs()to create this object.- code() int
Returns a 32-bit binary number with a bit set for each color threshold that’s part of this blob. Index
[8].
- x_hist_bins() List[int]
Returns a list of histogram bin values for the x axis of the blob. Index
[12].
- y_hist_bins() List[int]
Returns a list of histogram bin values for the y axis of the blob. Index
[13].
- corners() Tuple[Tuple[int, int], Tuple[int, int], Tuple[int, int], Tuple[int, int]]
Returns a 4-tuple of (x, y) tuples for the 4 corners of the blob in sorted clock-wise order starting from the top left. Index
[14].
- min_corners() Tuple[Tuple[int, int], Tuple[int, int], Tuple[int, int], Tuple[int, int]]
Returns a 4-tuple of (x, y) tuples for the 4 corners of the minimum area rectangle of the blob. Index
[15].