Struct google_api_proto::google::cloud::vision::v1p1beta1::EntityAnnotation
source · 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>,
}
Expand description
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
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§
source§impl Clone for EntityAnnotation
impl Clone for EntityAnnotation
source§fn clone(&self) -> EntityAnnotation
fn clone(&self) -> EntityAnnotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityAnnotation
impl Debug for EntityAnnotation
source§impl Default for EntityAnnotation
impl Default for EntityAnnotation
source§impl Message for EntityAnnotation
impl Message for EntityAnnotation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EntityAnnotation
impl PartialEq for EntityAnnotation
source§fn eq(&self, other: &EntityAnnotation) -> bool
fn eq(&self, other: &EntityAnnotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityAnnotation
Auto Trait Implementations§
impl Freeze for EntityAnnotation
impl RefUnwindSafe for EntityAnnotation
impl Send for EntityAnnotation
impl Sync for EntityAnnotation
impl Unpin for EntityAnnotation
impl UnwindSafe for EntityAnnotation
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<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