Face

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

Bases: object

The detected face.

Methods:

__init__(**kwargs)

Initializes a new Face object with values from keyword arguments.

Attributes:

bounding_polygon

[Required] Gets the bounding_polygon of this Face.

confidence

[Required] Gets the confidence of this Face.

embeddings

Gets the embeddings of this Face.

landmarks

Gets the landmarks of this Face.

quality_score

[Required] Gets the quality_score of this Face.

__init__(**kwargs)

Initializes a new Face object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

  • bounding_polygon (oci.ai_vision.models.BoundingPolygon) – The value to assign to the bounding_polygon property of this Face.

  • quality_score (float) – The value to assign to the quality_score property of this Face.

  • landmarks (list[oci.ai_vision.models.Landmark]) – The value to assign to the landmarks property of this Face.

  • embeddings (list[float]) – The value to assign to the embeddings property of this Face.

property bounding_polygon

[Required] Gets the bounding_polygon of this Face.

Returns

The bounding_polygon of this Face.

Return type

oci.ai_vision.models.BoundingPolygon

property confidence

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

Returns

The confidence of this Face.

Return type

float

property embeddings

Gets the embeddings of this Face. The facial feature vectors of detected faces

Returns

The embeddings of this Face.

Return type

list[float]

property landmarks

Gets the landmarks of this Face. A point of interest within a face.

Returns

The landmarks of this Face.

Return type

list[oci.ai_vision.models.Landmark]

property quality_score

[Required] Gets the quality_score of this Face. The quality score of the face detected, between 0 and 1.

Returns

The quality_score of this Face.

Return type

float