Skip to content

Commit 9831c1d

Browse files
yoshi-automationtseaver
authored andcommitted
feat(videointelligence): add celebrity recognition support (via synth) (#9612)
1 parent c4a69d4 commit 9831c1d

File tree

7 files changed

+868
-263
lines changed

7 files changed

+868
-263
lines changed

videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/enums.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Feature(enum.IntEnum):
3232
TEXT_DETECTION (int): OCR text detection and tracking.
3333
OBJECT_TRACKING (int): Object detection and tracking.
3434
LOGO_RECOGNITION (int): Logo detection, tracking, and recognition.
35+
CELEBRITY_RECOGNITION (int): Celebrity recognition.
3536
"""
3637

3738
FEATURE_UNSPECIFIED = 0
@@ -42,6 +43,7 @@ class Feature(enum.IntEnum):
4243
TEXT_DETECTION = 7
4344
OBJECT_TRACKING = 9
4445
LOGO_RECOGNITION = 12
46+
CELEBRITY_RECOGNITION = 13
4547

4648

4749
class LabelDetectionMode(enum.IntEnum):

videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/streaming_video_intelligence_service_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
class StreamingVideoIntelligenceServiceClient(object):
49-
"""Service that implements Google Cloud Video Intelligence Streaming API."""
49+
"""Service that implements streaming Google Cloud Video Intelligence API."""
5050

5151
SERVICE_ADDRESS = "videointelligence.googleapis.com:443"
5252
"""The default address of the service."""

videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/video_intelligence_service_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,19 @@ def annotate_video(
243243
request as ``input_content``. If set, ``input_content`` should be unset.
244244
input_content (bytes): The video data bytes. If unset, the input video(s) should be specified
245245
via ``input_uri``. If set, ``input_uri`` should be unset.
246-
features (list[~google.cloud.videointelligence_v1p3beta1.types.Feature]): Requested video annotation features.
246+
features (list[~google.cloud.videointelligence_v1p3beta1.types.Feature]): Required. Requested video annotation features.
247247
video_context (Union[dict, ~google.cloud.videointelligence_v1p3beta1.types.VideoContext]): Additional video context and/or feature-specific parameters.
248248
249249
If a dict is provided, it must be of the same form as the protobuf
250250
message :class:`~google.cloud.videointelligence_v1p3beta1.types.VideoContext`
251-
output_uri (str): Optional location where the output (in JSON format) should be stored.
251+
output_uri (str): Optional. Location where the output (in JSON format) should be stored.
252252
Currently, only `Google Cloud
253253
Storage <https://cloud.google.com/storage/>`__ URIs are supported, which
254254
must be specified in the following format: ``gs://bucket-id/object-id``
255255
(other URI formats return ``google.rpc.Code.INVALID_ARGUMENT``). For
256256
more information, see `Request
257257
URIs <https://cloud.google.com/storage/docs/reference-uris>`__.
258-
location_id (str): Optional cloud region where annotation should take place. Supported
258+
location_id (str): Optional. Cloud region where annotation should take place. Supported
259259
cloud regions: ``us-east1``, ``us-west1``, ``europe-west1``,
260260
``asia-east1``. If no region is specified, a region will be determined
261261
based on video file location.

0 commit comments

Comments
 (0)