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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eReferenceImage\u003c/code\u003e class within the Google Cloud Vision v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReferenceImage\u003c/code\u003e is used to represent a product image and its associated metadata, such as bounding boxes, in the Google Cloud Vision API.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eBoundingPolys\u003c/code\u003e for specifying areas of interest, \u003ccode\u003eName\u003c/code\u003e for the resource name of the image, and \u003ccode\u003eUri\u003c/code\u003e for the Google Cloud Storage URI of the image.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers versions from 2.3.0 up to the latest release, 3.7.0, of the Google.Cloud.Vision.V1 package.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class ReferenceImage (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.ReferenceImage)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.ReferenceImage) \n\n public sealed class ReferenceImage : IMessage\u003cReferenceImage\u003e, IEquatable\u003cReferenceImage\u003e, IDeepCloneable\u003cReferenceImage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class ReferenceImage.\n\nA `ReferenceImage` represents a product image and its associated metadata,\nsuch as bounding boxes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ReferenceImage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReferenceImage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReferenceImage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReferenceImage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImage), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### ReferenceImage()\n\n public ReferenceImage()\n\n### ReferenceImage(ReferenceImage)\n\n public ReferenceImage(ReferenceImage other)\n\nProperties\n----------\n\n### BoundingPolys\n\n public RepeatedField\u003cBoundingPoly\u003e BoundingPolys { get; }\n\nOptional. Bounding polygons around the areas of interest in the reference\nimage. If this field is empty, the system will try to detect regions of\ninterest. At most 10 bounding polygons will be used.\n\nThe provided shape is converted into a non-rotated rectangle. Once\nconverted, the small edge of the rectangle must be greater than or equal\nto 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5\nis not).\n\n### Name\n\n public string Name { get; set; }\n\nThe resource name of the reference image.\n\nFormat is:\n`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.\n\nThis field is ignored when creating a reference image.\n\n### ReferenceImageName\n\n public ReferenceImageName ReferenceImageName { get; set; }\n\n[ReferenceImageName](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImageName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ReferenceImage#Google_Cloud_Vision_V1_ReferenceImage_Name) resource name property.\n\n### Uri\n\n public string Uri { get; set; }\n\nRequired. The Google Cloud Storage URI of the reference image.\n\nThe URI must start with `gs://`."]]