gcloud ml vision detect-safe-search Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud ml vision detect-safe-search - detect explicit content in an image
- SYNOPSIS
gcloud ml vision detect-safe-searchIMAGE_PATH[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Safe Search Detection detects adult content, violent content, medical contentand spoof content in an image.
- EXAMPLES
- To detect adult content, violent content, medical content and spoof content inan image 'gs://my_bucket/input_file':
gcloudmlvisiondetect-safe-searchgs://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. Ifyou provide a local file, the contents will be sent directly to Google CloudVision. If you provide a URL, it must be in Google Cloud Storage format(gs://bucket/object) or an HTTP URL (http://... orhttps://…)
- 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 helpfor details. - API REFERENCE
- This command uses the
vision/v1API. The full documentation forthis API can be found at:https://cloud.google.com/vision/ - NOTES
- These variants are also available:
gcloudalphamlvisiondetect-safe-searchgcloudbetamlvisiondetect-safe-search
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.