Label

class oci.ai_vision.models.Label(**kwargs)

Bases: object

A label describing an image. Every label returned by the pre-deployed model is in English.

Methods:

__init__(**kwargs)

Initializes a new Label object with values from keyword arguments.

Attributes:

confidence

[Required] Gets the confidence of this Label.

name

[Required] Gets the name of this Label.

__init__(**kwargs)

Initializes a new Label 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 Label.

  • confidence (float) – The value to assign to the confidence property of this Label.

property confidence

[Required] Gets the confidence of this Label. The confidence score between 0 and 1.

Returns

The confidence of this Label.

Return type

float

property name

[Required] Gets the name of this Label. The classification catagory label name.

Returns

The name of this Label.

Return type

str