#[repr(i32)]pub enum FaceDetectMode {
Off = 0,
Simple = 1,
Full = 2,
}
Expand description
Control to select the face detection mode used by the pipeline.
Currently identical to ANDROID_STATISTICS_FACE_DETECT_MODE.
\sa FaceDetectFaceRectangles \sa FaceDetectFaceScores \sa FaceDetectFaceLandmarks \sa FaceDetectFaceIds
Variants§
Off = 0
Pipeline doesn’t perform face detection and doesn’t report any control related to face detection.
Simple = 1
Pipeline performs face detection and reports the FaceDetectFaceRectangles and FaceDetectFaceScores controls for each detected face. FaceDetectFaceLandmarks and FaceDetectFaceIds are optional.
Full = 2
Pipeline performs face detection and reports all the controls related to face detection including FaceDetectFaceRectangles, FaceDetectFaceScores, FaceDetectFaceLandmarks, and FaceDeteceFaceIds for each detected face.
Trait Implementations§
Source§impl Clone for FaceDetectMode
impl Clone for FaceDetectMode
Source§fn clone(&self) -> FaceDetectMode
fn clone(&self) -> FaceDetectMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ControlEntry for FaceDetectMode
impl ControlEntry for FaceDetectMode
Source§impl Debug for FaceDetectMode
impl Debug for FaceDetectMode
Source§impl From<FaceDetectMode> for ControlValue
impl From<FaceDetectMode> for ControlValue
Source§fn from(val: FaceDetectMode) -> Self
fn from(val: FaceDetectMode) -> Self
Converts to this type from the input type.
Source§impl From<FaceDetectMode> for i32
impl From<FaceDetectMode> for i32
Source§fn from(enum_value: FaceDetectMode) -> Self
fn from(enum_value: FaceDetectMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FaceDetectMode
impl PartialEq for FaceDetectMode
Source§impl TryFrom<ControlValue> for FaceDetectMode
impl TryFrom<ControlValue> for FaceDetectMode
Source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
Source§impl TryFrom<i32> for FaceDetectMode
impl TryFrom<i32> for FaceDetectMode
Source§impl TryFromPrimitive for FaceDetectMode
impl TryFromPrimitive for FaceDetectMode
impl Control for FaceDetectMode
impl Copy for FaceDetectMode
impl Eq for FaceDetectMode
impl StructuralPartialEq for FaceDetectMode
Auto Trait Implementations§
impl Freeze for FaceDetectMode
impl RefUnwindSafe for FaceDetectMode
impl Send for FaceDetectMode
impl Sync for FaceDetectMode
impl Unpin for FaceDetectMode
impl UnwindSafe for FaceDetectMode
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
Mutably borrows from an owned value. Read more