[][src]Struct gcp_client::google::cloud::vision::v1p4beta1::EntityAnnotation

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

Set of detected entity features.

Fields

mid: String

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

locale: String

The language code for the locale in which the entity textual description is expressed.

description: String

Entity textual description, expressed in its locale language.

score: f32

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

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

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

bounding_poly: Option<BoundingPoly>

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

locations: 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.

properties: 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 Message for EntityAnnotation[src]

impl PartialEq<EntityAnnotation> for EntityAnnotation[src]

impl StructuralPartialEq 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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]