ImageObject¶
- class oci.ai_vision.models.ImageObject(**kwargs)¶
Bases:
objectThe object detected in an image.
Methods:
__init__(**kwargs)Initializes a new ImageObject object with values from keyword arguments.
Attributes:
[Required] Gets the bounding_polygon of this ImageObject.
[Required] Gets the confidence of this ImageObject.
[Required] Gets the name of this ImageObject.
- __init__(**kwargs)¶
Initializes a new ImageObject object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
name (str) – The value to assign to the name property of this ImageObject.
confidence (float) – The value to assign to the confidence property of this ImageObject.
bounding_polygon (oci.ai_vision.models.BoundingPolygon) – The value to assign to the bounding_polygon property of this ImageObject.
- property bounding_polygon¶
[Required] Gets the bounding_polygon of this ImageObject.
- Returns
The bounding_polygon of this ImageObject.
- Return type
- property confidence¶
[Required] Gets the confidence of this ImageObject. The confidence score, between 0 and 1.
- Returns
The confidence of this ImageObject.
- Return type
float
- property name¶
[Required] Gets the name of this ImageObject. The object category name. Every value returned by the pre-deployed model is in English.
- Returns
The name of this ImageObject.
- Return type
str