Class EntityAnnotation (2.5.0)

public sealed class EntityAnnotation : IMessage<EntityAnnotation>, IEquatable<EntityAnnotation>, IDeepCloneable<EntityAnnotation>, IBufferMessage, IMessage

Set of detected entity features.

Inheritance

Object > EntityAnnotation

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

EntityAnnotation()

public EntityAnnotation()

EntityAnnotation(EntityAnnotation)

public EntityAnnotation(EntityAnnotation other)
Parameter
NameDescription
otherEntityAnnotation

Properties

BoundingPoly

public BoundingPoly BoundingPoly { get; set; }

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

Property Value
TypeDescription
BoundingPoly

Confidence

[Obsolete]
public float Confidence { get; set; }

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

Property Value
TypeDescription
Single

Description

public string Description { get; set; }

Entity textual description, expressed in its locale language.

Property Value
TypeDescription
String

Locale

public string Locale { get; set; }

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

Property Value
TypeDescription
String

Locations

public RepeatedField<LocationInfo> Locations { get; }

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.

Property Value
TypeDescription
RepeatedField<LocationInfo>

Mid

public string Mid { get; set; }

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

Property Value
TypeDescription
String

Properties

public RepeatedField<Property> Properties { get; }

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

Property Value
TypeDescription
RepeatedField<Property>

Score

public float Score { get; set; }

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

Property Value
TypeDescription
Single

Topicality

public float Topicality { get; set; }

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

Property Value
TypeDescription
Single