Struct google_vision1::api::EntityAnnotation [−][src]
Set of detected entity features.
This type is not used in any activity, and only used as part of another schema.
Fields
bounding_poly: Option<BoundingPoly>Image region to which this entity belongs. Not produced for LABEL_DETECTION features.
confidence: Option<f32>Deprecated. Use score instead. The accuracy of the entity detection in an image. For example, for an image in which the “Eiffel Tower” entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].
description: Option<String>Entity textual description, expressed in its locale language.
locale: Option<String>The language code for the locale in which the entity textual description is expressed.
locations: Option<Vec<LocationInfo>>The location information for the detected entity. Multiple LocationInfo elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
mid: Option<String>Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
properties: Option<Vec<Property>>Some entities may have optional user-supplied Property (name/value) fields, such a score or string that qualifies the entity.
score: Option<f32>Overall score of the result. Range [0, 1].
topicality: Option<f32>The relevancy of the ICA (Image Content Annotation) label to the image. For example, the relevancy of “tower” is likely higher to an image containing the detected “Eiffel Tower” than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1].
Trait Implementations
impl Clone for EntityAnnotation[src]
fn clone(&self) -> EntityAnnotation[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for EntityAnnotation[src]
impl Default for EntityAnnotation[src]
fn default() -> EntityAnnotation[src]
impl<'de> Deserialize<'de> for EntityAnnotation[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for EntityAnnotation[src]
impl Serialize for EntityAnnotation[src]
Auto Trait Implementations
impl RefUnwindSafe for EntityAnnotation
impl Send for EntityAnnotation
impl Sync for EntityAnnotation
impl Unpin for EntityAnnotation
impl UnwindSafe for EntityAnnotation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,