Get

Gets information associated with a ReferenceImage

1 variables
9 variables

Gets information associated with a ReferenceImage.

Possible errors:

  • Returns NOT_FOUND if the specified image does not exist

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your data across Google Cloud Platform services
  • Apply machine learning models to understand and label images

Input

This building block consumes 1 input parameters

  = Parameter name
  = Format

name STRING Required

The resource name of the ReferenceImage to get.

Format is:

projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID

Output

This building block provides 9 output parameters

  = Parameter name
  = Format

name 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 STRING

The Google Cloud Storage URI of the reference image.

The URI must start with gs://.

Required

boundingPolys[] OBJECT

A bounding polygon for the detected image annotation

boundingPolys[].normalizedVertices[] OBJECT

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1

boundingPolys[].normalizedVertices[].y FLOAT

Y coordinate

boundingPolys[].normalizedVertices[].x FLOAT

X coordinate

boundingPolys[].vertices[] OBJECT

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image

boundingPolys[].vertices[].x INTEGER

X coordinate

boundingPolys[].vertices[].y INTEGER

Y coordinate