#[repr(i32)]pub enum Type {
Unspecified = 0,
FaceDetection = 1,
LandmarkDetection = 2,
LogoDetection = 3,
LabelDetection = 4,
TextDetection = 5,
DocumentTextDetection = 11,
SafeSearchDetection = 6,
ImageProperties = 7,
CropHints = 9,
WebDetection = 10,
}
Expand description
Type of Google Cloud Vision API feature to be extracted.
Variants§
Unspecified = 0
Unspecified feature type.
FaceDetection = 1
Run face detection.
LandmarkDetection = 2
Run landmark detection.
LogoDetection = 3
Run logo detection.
LabelDetection = 4
Run label detection.
TextDetection = 5
Run text detection / optical character recognition (OCR). Text detection
is optimized for areas of text within a larger image; if the image is
a document, use DOCUMENT_TEXT_DETECTION
instead.
DocumentTextDetection = 11
Run dense text document OCR. Takes precedence when both
DOCUMENT_TEXT_DETECTION
and TEXT_DETECTION
are present.
SafeSearchDetection = 6
Run Safe Search to detect potentially unsafe or undesirable content.
ImageProperties = 7
Compute a set of image properties, such as the image’s dominant colors.
CropHints = 9
Run crop hints.
WebDetection = 10
Run web detection.
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