Class ReferenceImage (3.0.0)

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

A ReferenceImage represents a product image and its associated metadata, such as bounding boxes.

Inheritance

Object > ReferenceImage

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

ReferenceImage()

public ReferenceImage()

ReferenceImage(ReferenceImage)

public ReferenceImage(ReferenceImage other)
Parameter
NameDescription
otherReferenceImage

Properties

BoundingPolys

public RepeatedField<BoundingPoly> BoundingPolys { get; }

Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used.

The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).

Property Value
TypeDescription
RepeatedField<BoundingPoly>

Name

public string Name { get; set; }

The resource name of the reference image.

Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID.

This field is ignored when creating a reference image.

Property Value
TypeDescription
String

ReferenceImageName

public ReferenceImageName ReferenceImageName { get; set; }

ReferenceImageName-typed view over the Name resource name property.

Property Value
TypeDescription
ReferenceImageName

Uri

public string Uri { get; set; }

Required. The Google Cloud Storage URI of the reference image.

The URI must start with gs://.

Property Value
TypeDescription
String