ObjectHierarchy Class

An object detected inside an image.

Inheritance
ObjectHierarchy

Constructor

ObjectHierarchy(*, object_property: Optional[str] = None, confidence: Optional[float] = None, parent=None, **kwargs)

Parameters

object_property
str
Required

Label for the object.

confidence
float
Required

Confidence score of having observed the object in the image, as a value ranging from 0 to 1.

parent
ObjectHierarchy
Required

The parent object, from a taxonomy perspective. The parent object is a more generic form of this object. For example, a 'bulldog' would have a parent of 'dog'.