vision library

Classes

BoundingPoly
A bounding polygon for the detected image annotation.
BoundingPolyResponse
A bounding polygon for the detected image annotation.
GetProductArgs
Arguments for getProduct. Arguments for getProduct.
GetProductResult
Result data returned by getProduct.
GetProductSetArgs
Arguments for getProductSet. Arguments for getProductSet.
GetProductSetResult
Result data returned by getProductSet.
GetReferenceImageArgs
Arguments for getReferenceImage. Arguments for getReferenceImage.
GetReferenceImageResult
Result data returned by getReferenceImage.
KeyValue
A product label represented as a key-value pair.
KeyValueResponse
A product label represented as a key-value pair.
NormalizedVertex
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.
NormalizedVertexResponse
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.
Product
Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.
ProductArgs
The set of arguments for Product. The set of arguments for Product.
ProductSet
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
ProductSetArgs
The set of arguments for ProductSet. The set of arguments for ProductSet.
ReferenceImage
Creates and returns a new ReferenceImage resource. The bounding_poly field is optional. If bounding_poly is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
ReferenceImageArgs
The set of arguments for ReferenceImage. The set of arguments for ReferenceImage.
StatusResponse
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
Vertex
A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
VertexResponse
A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Functions

getProduct(GetProductArgs args, {InvokeOptions? options}) → Future<GetProductResult>
Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist. args Arguments passed to this invoke. Arguments for getProduct. options Invoke options controlling this call.
getProductSet(GetProductSetArgs args, {InvokeOptions? options}) → Future<GetProductSetResult>
Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. args Arguments passed to this invoke. Arguments for getProductSet. options Invoke options controlling this call.
getReferenceImage(GetReferenceImageArgs args, {InvokeOptions? options}) → Future<GetReferenceImageResult>
Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist. args Arguments passed to this invoke. Arguments for getReferenceImage. options Invoke options controlling this call.