ObjectHypothesis
class_id names the class (a label or an id string); score is the confidence.
Fields
| Name | Type | Default |
|---|---|---|
class_id | str | required |
score | float | required |
Example
One instance from the package's own test catalog; the output is its real repr().
ObjectHypothesis(class_id='bottle', score=0.91)to_dict() as JSON
{
"_type": "vision/ObjectHypothesis",
"class_id": "bottle",
"score": 0.91
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.