Skip to content

Commit

Permalink
feat(videointelligence): add celebrity recognition support (via synth) (
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Nov 6, 2019
1 parent c4a69d4 commit 9831c1d
Show file tree
Hide file tree
Showing 7 changed files with 868 additions and 263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Feature(enum.IntEnum):
TEXT_DETECTION (int): OCR text detection and tracking.
OBJECT_TRACKING (int): Object detection and tracking.
LOGO_RECOGNITION (int): Logo detection, tracking, and recognition.
CELEBRITY_RECOGNITION (int): Celebrity recognition.
"""

FEATURE_UNSPECIFIED = 0
Expand All @@ -42,6 +43,7 @@ class Feature(enum.IntEnum):
TEXT_DETECTION = 7
OBJECT_TRACKING = 9
LOGO_RECOGNITION = 12
CELEBRITY_RECOGNITION = 13


class LabelDetectionMode(enum.IntEnum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@


class StreamingVideoIntelligenceServiceClient(object):
"""Service that implements Google Cloud Video Intelligence Streaming API."""
"""Service that implements streaming Google Cloud Video Intelligence API."""

SERVICE_ADDRESS = "videointelligence.googleapis.com:443"
"""The default address of the service."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,19 @@ def annotate_video(
request as ``input_content``. If set, ``input_content`` should be unset.
input_content (bytes): The video data bytes. If unset, the input video(s) should be specified
via ``input_uri``. If set, ``input_uri`` should be unset.
features (list[~google.cloud.videointelligence_v1p3beta1.types.Feature]): Requested video annotation features.
features (list[~google.cloud.videointelligence_v1p3beta1.types.Feature]): Required. Requested video annotation features.
video_context (Union[dict, ~google.cloud.videointelligence_v1p3beta1.types.VideoContext]): Additional video context and/or feature-specific parameters.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.videointelligence_v1p3beta1.types.VideoContext`
output_uri (str): Optional location where the output (in JSON format) should be stored.
output_uri (str): Optional. Location where the output (in JSON format) should be stored.
Currently, only `Google Cloud
Storage <https://cloud.google.com/storage/>`__ URIs are supported, which
must be specified in the following format: ``gs://bucket-id/object-id``
(other URI formats return ``google.rpc.Code.INVALID_ARGUMENT``). For
more information, see `Request
URIs <https://cloud.google.com/storage/docs/reference-uris>`__.
location_id (str): Optional cloud region where annotation should take place. Supported
location_id (str): Optional. Cloud region where annotation should take place. Supported
cloud regions: ``us-east1``, ``us-west1``, ``europe-west1``,
``asia-east1``. If no region is specified, a region will be determined
based on video file location.
Expand Down
Loading

0 comments on commit 9831c1d

Please sign in to comment.