Enum google_api_proto::google::cloud::vision::v1p4beta1::face_annotation::landmark::Type
source · #[repr(i32)]pub enum Type {
Show 35 variants
UnknownLandmark = 0,
LeftEye = 1,
RightEye = 2,
LeftOfLeftEyebrow = 3,
RightOfLeftEyebrow = 4,
LeftOfRightEyebrow = 5,
RightOfRightEyebrow = 6,
MidpointBetweenEyes = 7,
NoseTip = 8,
UpperLip = 9,
LowerLip = 10,
MouthLeft = 11,
MouthRight = 12,
MouthCenter = 13,
NoseBottomRight = 14,
NoseBottomLeft = 15,
NoseBottomCenter = 16,
LeftEyeTopBoundary = 17,
LeftEyeRightCorner = 18,
LeftEyeBottomBoundary = 19,
LeftEyeLeftCorner = 20,
RightEyeTopBoundary = 21,
RightEyeRightCorner = 22,
RightEyeBottomBoundary = 23,
RightEyeLeftCorner = 24,
LeftEyebrowUpperMidpoint = 25,
RightEyebrowUpperMidpoint = 26,
LeftEarTragion = 27,
RightEarTragion = 28,
LeftEyePupil = 29,
RightEyePupil = 30,
ForeheadGlabella = 31,
ChinGnathion = 32,
ChinLeftGonion = 33,
ChinRightGonion = 34,
}
Expand description
Face landmark (feature) type.
Left and right are defined from the vantage of the viewer of the image
without considering mirror projections typical of photos. So, LEFT_EYE
,
typically, is the person’s right eye.
Variants§
UnknownLandmark = 0
Unknown face landmark detected. Should not be filled.
LeftEye = 1
Left eye.
RightEye = 2
Right eye.
LeftOfLeftEyebrow = 3
Left of left eyebrow.
RightOfLeftEyebrow = 4
Right of left eyebrow.
LeftOfRightEyebrow = 5
Left of right eyebrow.
RightOfRightEyebrow = 6
Right of right eyebrow.
MidpointBetweenEyes = 7
Midpoint between eyes.
NoseTip = 8
Nose tip.
UpperLip = 9
Upper lip.
LowerLip = 10
Lower lip.
MouthLeft = 11
Mouth left.
MouthRight = 12
Mouth right.
MouthCenter = 13
Mouth center.
NoseBottomRight = 14
Nose, bottom right.
NoseBottomLeft = 15
Nose, bottom left.
NoseBottomCenter = 16
Nose, bottom center.
LeftEyeTopBoundary = 17
Left eye, top boundary.
LeftEyeRightCorner = 18
Left eye, right corner.
LeftEyeBottomBoundary = 19
Left eye, bottom boundary.
LeftEyeLeftCorner = 20
Left eye, left corner.
RightEyeTopBoundary = 21
Right eye, top boundary.
RightEyeRightCorner = 22
Right eye, right corner.
RightEyeBottomBoundary = 23
Right eye, bottom boundary.
RightEyeLeftCorner = 24
Right eye, left corner.
LeftEyebrowUpperMidpoint = 25
Left eyebrow, upper midpoint.
RightEyebrowUpperMidpoint = 26
Right eyebrow, upper midpoint.
LeftEarTragion = 27
Left ear tragion.
RightEarTragion = 28
Right ear tragion.
LeftEyePupil = 29
Left eye pupil.
RightEyePupil = 30
Right eye pupil.
ForeheadGlabella = 31
Forehead glabella.
ChinGnathion = 32
Chin gnathion.
ChinLeftGonion = 33
Chin left gonion.
ChinRightGonion = 34
Chin right gonion.
Implementations§
source§impl Type
impl Type
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Type
impl Ord for Type
source§impl PartialEq for Type
impl PartialEq for Type
source§impl PartialOrd for Type
impl PartialOrd for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Type
impl TryFrom<i32> for Type
§type Error = DecodeError
type Error = DecodeError
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request