Blobs.bboxarea#

property Blobs.bboxarea: Any#

Area of the bounding box

Returns:

area of the bounding box in pixels

Return type:

int

Return the area of the bounding box which is invariant to blob position.

Example:

>>> from machinevisiontoolbox import Image
>>> im = Image.Read('shark2.png')
>>> blobs = im.blobs()
>>> blobs[0].bboxarea
np.int64(122100)
>>> blobs.bboxarea
array([122100,  20700])

Note

The bounding box is the smallest box with vertical and horizontal edges that fully encloses the blob.

Seealso:

bbox area fillfactor