mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
50 lines
1.7 KiB
Text
50 lines
1.7 KiB
Text
NAME
|
|
gcloud ml vision suggest-crop - suggest a bounding box in an image
|
|
|
|
SYNOPSIS
|
|
gcloud ml vision suggest-crop IMAGE_PATH
|
|
[--aspect-ratios=[ASPECT_RATIOS,...]] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Returns the coordinates of a bounding box that surrounds the dominant
|
|
object or face in an image.
|
|
|
|
EXAMPLES
|
|
To get the coordinates of a bounding box that surrounds the dominant object
|
|
or face in an image gs://my_bucket/input_file:
|
|
|
|
$ gcloud ml vision suggest-crop gs://my_bucket/input_file
|
|
|
|
POSITIONAL ARGUMENTS
|
|
IMAGE_PATH
|
|
Path to the image to be analyzed. This can be either a local path or a
|
|
URL. If you provide a local file, the contents will be sent directly to
|
|
Google Cloud Vision. If you provide a URL, it must be in Google Cloud
|
|
Storage format (gs://bucket/object) or an HTTP URL (http://... or
|
|
https://...)
|
|
|
|
FLAGS
|
|
--aspect-ratios=[ASPECT_RATIOS,...]
|
|
A list of aspect ratio hints for the suggested bounding box. Aspect
|
|
ratios may be specified either as a decimal number (ex. 1.333) or as a
|
|
ratio of width to height (ex 4:3).
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
API REFERENCE
|
|
This command uses the vision/v1 API. The full documentation for this API
|
|
can be found at: https://cloud.google.com/vision/
|
|
|
|
NOTES
|
|
These variants are also available:
|
|
|
|
$ gcloud alpha ml vision suggest-crop
|
|
|
|
$ gcloud beta ml vision suggest-crop
|
|
|