[][src]Struct google_vision1::EntityAnnotation

pub struct EntityAnnotation {
    pub confidence: Option<f32>,
    pub description: Option<String>,
    pub locale: Option<String>,
    pub topicality: Option<f32>,
    pub locations: Option<Vec<LocationInfo>>,
    pub mid: Option<String>,
    pub score: Option<f32>,
    pub bounding_poly: Option<BoundingPoly>,
    pub properties: Option<Vec<Property>>,
}

Set of detected entity features.

This type is not used in any activity, and only used as part of another schema.

Fields

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.

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].

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.

score: Option<f32>

Overall score of the result. Range [0, 1].

bounding_poly: Option<BoundingPoly>

Image region to which this entity belongs. Not produced for LABEL_DETECTION features.

properties: Option<Vec<Property>>

Some entities may have optional user-supplied Property (name/value) fields, such a score or string that qualifies the entity.

Trait Implementations

impl Clone for EntityAnnotation[src]

impl Debug for EntityAnnotation[src]

impl Default for EntityAnnotation[src]

impl<'de> Deserialize<'de> for EntityAnnotation[src]

impl Part for EntityAnnotation[src]

impl Serialize for EntityAnnotation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any