Struct googapis::google::cloud::vision::v1p2beta1::EntityAnnotation [−][src]
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
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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more