EntityAnnotation(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Set of detected entity features.
Attributes | |
---|---|
Name | Description |
mid |
str
Opaque entity ID. Some IDs may be available in `Google Knowledge Graph Search API |
locale |
str
The language code for the locale in which the entity textual description is expressed.
|
description |
str
Entity textual description, expressed in its locale
language.
|
score |
float
Overall score of the result. Range [0, 1]. |
confidence |
float
**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 |
float
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 |
google.cloud.vision_v1p4beta1.types.BoundingPoly
Image region to which this entity belongs. Not produced for LABEL_DETECTION features.
|
locations |
Sequence[google.cloud.vision_v1p4beta1.types.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 |
Sequence[google.cloud.vision_v1p4beta1.types.Property]
Some entities may have optional user-supplied Property
(name/value) fields, such a score or string that qualifies
the entity.
|