Landmark¶
- class oci.ai_vision.models.Landmark(**kwargs)¶
Bases:
objectThe landmark on the face.
Attributes:
A constant which can be used with the type property of a Landmark.
A constant which can be used with the type property of a Landmark.
A constant which can be used with the type property of a Landmark.
A constant which can be used with the type property of a Landmark.
A constant which can be used with the type property of a Landmark.
[Required] Gets the type of this Landmark.
[Required] Gets the x of this Landmark.
[Required] Gets the y of this Landmark.
Methods:
__init__(**kwargs)Initializes a new Landmark object with values from keyword arguments.
- TYPE_LEFT_EDGE_OF_MOUTH = 'LEFT_EDGE_OF_MOUTH'¶
A constant which can be used with the type property of a Landmark. This constant has a value of “LEFT_EDGE_OF_MOUTH”
- TYPE_LEFT_EYE = 'LEFT_EYE'¶
A constant which can be used with the type property of a Landmark. This constant has a value of “LEFT_EYE”
- TYPE_NOSE_TIP = 'NOSE_TIP'¶
A constant which can be used with the type property of a Landmark. This constant has a value of “NOSE_TIP”
- TYPE_RIGHT_EDGE_OF_MOUTH = 'RIGHT_EDGE_OF_MOUTH'¶
A constant which can be used with the type property of a Landmark. This constant has a value of “RIGHT_EDGE_OF_MOUTH”
- TYPE_RIGHT_EYE = 'RIGHT_EYE'¶
A constant which can be used with the type property of a Landmark. This constant has a value of “RIGHT_EYE”
- __init__(**kwargs)¶
Initializes a new Landmark object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
type (str) – The value to assign to the type property of this Landmark. Allowed values for this property are: “LEFT_EYE”, “RIGHT_EYE”, “NOSE_TIP”, “LEFT_EDGE_OF_MOUTH”, “RIGHT_EDGE_OF_MOUTH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
x (float) – The value to assign to the x property of this Landmark.
y (float) – The value to assign to the y property of this Landmark.
- property type¶
[Required] Gets the type of this Landmark. The face landmark type
Allowed values for this property are: “LEFT_EYE”, “RIGHT_EYE”, “NOSE_TIP”, “LEFT_EDGE_OF_MOUTH”, “RIGHT_EDGE_OF_MOUTH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The type of this Landmark.
- Return type
str
- property x¶
[Required] Gets the x of this Landmark. The X-axis normalized coordinate.
- Returns
The x of this Landmark.
- Return type
float
- property y¶
[Required] Gets the y of this Landmark. The Y-axis normalized coordinate.
- Returns
The y of this Landmark.
- Return type
float