- gcloud alpha ml vision detect-objects - detect and extract multiple objects in an image with object localization
(ALPHA)Detect and extract multiple objects in an image with object localization.
Object localization identifies multiple objects in an image and provides a LocalizedObjectAnnotation for each object in the image.
- POSITIONAL ARGUMENTS
- 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://…)
Model version to use for the feature.
MODEL_VERSIONmust be one of:
- GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
$ gcloud helpfor details.
- API REFERENCE
This command uses the
vision/v1API. The full documentation for this API can be found at: https://cloud.google.com/vision/
To detect objects for image 'gs://my_bucket/input_file':
gcloud alpha ml vision detect-objects gs://my_bucket/input_file
- This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access allowlist. These variants are also available:
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 2020-08-04 UTC.