Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vision/v1.getReferenceImage
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.
Using getReferenceImage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReferenceImage(args: GetReferenceImageArgs, opts?: InvokeOptions): Promise<GetReferenceImageResult>
function getReferenceImageOutput(args: GetReferenceImageOutputArgs, opts?: InvokeOptions): Output<GetReferenceImageResult>
def get_reference_image(location: Optional[str] = None,
product_id: Optional[str] = None,
project: Optional[str] = None,
reference_image_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReferenceImageResult
def get_reference_image_output(location: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
reference_image_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReferenceImageResult]
func LookupReferenceImage(ctx *Context, args *LookupReferenceImageArgs, opts ...InvokeOption) (*LookupReferenceImageResult, error)
func LookupReferenceImageOutput(ctx *Context, args *LookupReferenceImageOutputArgs, opts ...InvokeOption) LookupReferenceImageResultOutput
> Note: This function is named LookupReferenceImage
in the Go SDK.
public static class GetReferenceImage
{
public static Task<GetReferenceImageResult> InvokeAsync(GetReferenceImageArgs args, InvokeOptions? opts = null)
public static Output<GetReferenceImageResult> Invoke(GetReferenceImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReferenceImageResult> getReferenceImage(GetReferenceImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:vision/v1:getReferenceImage
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Product
Id string - Reference
Image stringId - Project string
- Location string
- Product
Id string - Reference
Image stringId - Project string
- location String
- product
Id String - reference
Image StringId - project String
- location string
- product
Id string - reference
Image stringId - project string
- location str
- product_
id str - reference_
image_ strid - project str
- location String
- product
Id String - reference
Image StringId - project String
getReferenceImage Result
The following output properties are available:
- Bounding
Polys List<Pulumi.Google Native. Vision. V1. Outputs. Bounding Poly Response> - 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 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://
.
- Bounding
Polys []BoundingPoly Response - 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 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://
.
- bounding
Polys List<BoundingPoly Response> - 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 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://
.
- bounding
Polys BoundingPoly Response[] - 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 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://
.
- bounding_
polys Sequence[BoundingPoly Response] - 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 str
- 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 str
- The Google Cloud Storage URI of the reference image. The URI must start with
gs://
.
- bounding
Polys List<Property Map> - 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 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://
.
Supporting Types
BoundingPolyResponse
- Normalized
Vertices List<Pulumi.Google Native. Vision. V1. Inputs. Normalized Vertex Response> - The bounding polygon normalized vertices.
- Vertices
List<Pulumi.
Google Native. Vision. V1. Inputs. Vertex Response> - The bounding polygon vertices.
- Normalized
Vertices []NormalizedVertex Response - The bounding polygon normalized vertices.
- Vertices
[]Vertex
Response - The bounding polygon vertices.
- normalized
Vertices List<NormalizedVertex Response> - The bounding polygon normalized vertices.
- vertices
List<Vertex
Response> - The bounding polygon vertices.
- normalized
Vertices NormalizedVertex Response[] - The bounding polygon normalized vertices.
- vertices
Vertex
Response[] - The bounding polygon vertices.
- normalized_
vertices Sequence[NormalizedVertex Response] - The bounding polygon normalized vertices.
- vertices
Sequence[Vertex
Response] - The bounding polygon vertices.
- normalized
Vertices List<Property Map> - The bounding polygon normalized vertices.
- vertices List<Property Map>
- The bounding polygon vertices.
NormalizedVertexResponse
VertexResponse
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.