Landmark¶
-
class
oci.ai_vision.models.
Landmark
(**kwargs)¶ Bases:
object
The landmark on the face.
Attributes
TYPE_LEFT_EDGE_OF_MOUTH
A constant which can be used with the type property of a Landmark. TYPE_LEFT_EYE
A constant which can be used with the type property of a Landmark. TYPE_NOSE_TIP
A constant which can be used with the type property of a Landmark. TYPE_RIGHT_EDGE_OF_MOUTH
A constant which can be used with the type property of a Landmark. TYPE_RIGHT_EYE
A constant which can be used with the type property of a Landmark. type
[Required] Gets the type of this Landmark. x
[Required] Gets the x of this Landmark. y
[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.
-
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
-
x
¶ [Required] Gets the x of this Landmark. The X-axis normalized coordinate.
Returns: The x of this Landmark. Return type: float
-
y
¶ [Required] Gets the y of this Landmark. The Y-axis normalized coordinate.
Returns: The y of this Landmark. Return type: float
-