- gcloud alpha ml video detect-explicit-content - detect explicit content in videos
gcloud alpha ml video detect-explicit-content INPUT_PATH [--async] [--output-uri=OUTPUT_URI] [--region=REGION] [--segments=[SEGMENTS,...]] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Detect adult content within a video. Adult content is content
The response includes a bucketized likelihood value, from VERY_UNLIKELY to VERY_LIKELY. When Explicit Content Detection evaluates a video, it does so on a per-frame basis and considers visual content only (not audio).
The path to the video to be analyzed. Must be a local path or a Google Cloud
Display information about the operation in progress, without waiting for the
operation to complete.
The location to which the results should be written. Must be a Google Cloud
Optional cloud region where annotation should take place. If no region is
specified, a region will be determined based on video file location.
REGION must be one of: asia-east1, europe-west1,
The segments from the video which you want to analyze (by default, the entire
video will be treated as one segment). Must be in the format
START1:END1[,START2:END2,...] (inclusive). START and END of segments must be a
properly formatted duration string of the form HhMmSs where:
- H is the number of hours from beginning of video
- M is the number of minutes from the beginning of video
S is the number of seconds from the beginning of the video
H, M and S can be specified as ints or floats for fractional units (to
microsecond resolution). Unit chars (e.g. h, m or s) are
required. Microseconds can be specified using fractional seconds e.g. 0.000569s
== 569 microseconds.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
This command uses the videointelligence/v1 API. The full documentation for this API can be found at: cloud.google.com/video-intelligence/docs
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 will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud ml video detect-explicit-content $ gcloud beta ml video detect-explicit-content