- NAME
-
- gcloud beta ml vision detect-labels - detect broad sets of categories within an image
- SYNOPSIS
-
-
gcloud beta ml vision detect-labels
IMAGE_PATH
[--max-results
=MAX_RESULTS
] [--model-version
=MODEL_VERSION
; default="builtin/stable"] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
Label Detection detects categories in an image, ranging from modes of transportation to animals. - EXAMPLES
-
To detect categories in an image 'gs://my_bucket/input_file':
gcloud beta ml vision detect-labels 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
-
--max-results
=MAX_RESULTS
- Maximum number of results to be provided.
--model-version
=MODEL_VERSION
; default="builtin/stable"-
Model version to use for the feature.
MODEL_VERSION
must be one of:builtin/latest
,builtin/stable
.
- 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
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloud ml vision detect-labels
gcloud alpha ml vision detect-labels
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.