(::Array<::Google::Cloud::Vision::V1::BoundingPoly>) — 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).
value (::Array<::Google::Cloud::Vision::V1::BoundingPoly>) — 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).
Returns
(::Array<::Google::Cloud::Vision::V1::BoundingPoly>) — 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).
#name
defname()->::String
Returns
(::String) — 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.
#name=
defname=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
#uri
defuri()->::String
Returns
(::String) — Required. The Google Cloud Storage URI of the reference image.
The URI must start with gs://.
#uri=
defuri=(value)->::String
Parameter
value (::String) — Required. The Google Cloud Storage URI of the reference image.
The URI must start with gs://.
Returns
(::String) — Required. The Google Cloud Storage URI of the reference image.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ReferenceImage (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ReferenceImage)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-ReferenceImage)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-ReferenceImage)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-ReferenceImage) \nReference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::ReferenceImage.\n\nA `ReferenceImage` represents a product image and its associated metadata,\nsuch as bounding boxes. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bounding_polys\n\n def bounding_polys() -\u003e ::Array\u003c::Google::Cloud::Vision::V1::BoundingPoly\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Vision::V1::BoundingPoly](./Google-Cloud-Vision-V1-BoundingPoly)\\\u003e) --- 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.\n\n\n The provided shape is converted into a non-rotated rectangle. Once\n converted, the small edge of the rectangle must be greater than or equal\n to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5\n is not).\n\n### #bounding_polys=\n\n def bounding_polys=(value) -\u003e ::Array\u003c::Google::Cloud::Vision::V1::BoundingPoly\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Vision::V1::BoundingPoly](./Google-Cloud-Vision-V1-BoundingPoly)\\\u003e) --- 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.\n\n\n The provided shape is converted into a non-rotated rectangle. Once\n converted, the small edge of the rectangle must be greater than or equal\n to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5\nis not). \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Vision::V1::BoundingPoly](./Google-Cloud-Vision-V1-BoundingPoly)\\\u003e) --- 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.\n\n\n The provided shape is converted into a non-rotated rectangle. Once\n converted, the small edge of the rectangle must be greater than or equal\n to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5\n is not).\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The resource name of the reference image.\n\n Format is:\n `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.\n\n This field is ignored when creating a reference image.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The resource name of the reference image.\n\n\n Format 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**Returns**\n\n- (::String) --- The resource name of the reference image.\n\n Format is:\n `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.\n\n This field is ignored when creating a reference image.\n\n### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The Google Cloud Storage URI of the reference image.\n\n The URI must start with `gs://`.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The Google Cloud Storage URI of the reference image.\n\n\nThe URI must start with `gs://`. \n**Returns**\n\n- (::String) --- Required. The Google Cloud Storage URI of the reference image.\n\n The URI must start with `gs://`."]]