Skip to content

Commit

Permalink
Generate videointelligence v1p1beta1 (#5165)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox authored and Jon Wayne Parrott committed Apr 6, 2018
1 parent 968143b commit 125f9eb
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 747 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ class Feature(object):
LABEL_DETECTION (int): Label detection. Detect objects, such as dog or flower.
SHOT_CHANGE_DETECTION (int): Shot change detection.
EXPLICIT_CONTENT_DETECTION (int): Explicit content detection.
FACE_DETECTION (int): Face detection.
SPEECH_TRANSCRIPTION (int): Speech transcription.
"""
FEATURE_UNSPECIFIED = 0
LABEL_DETECTION = 1
SHOT_CHANGE_DETECTION = 2
EXPLICIT_CONTENT_DETECTION = 3
FACE_DETECTION = 8
SPEECH_TRANSCRIPTION = 6


Expand Down Expand Up @@ -68,39 +66,3 @@ class Likelihood(object):
POSSIBLE = 3
LIKELY = 4
VERY_LIKELY = 5


class Emotion(object):
"""
Emotions.
Attributes:
EMOTION_UNSPECIFIED (int): Unspecified emotion.
AMUSEMENT (int): Amusement.
ANGER (int): Anger.
CONCENTRATION (int): Concentration.
CONTENTMENT (int): Contentment.
DESIRE (int): Desire.
DISAPPOINTMENT (int): Disappointment.
DISGUST (int): Disgust.
ELATION (int): Elation.
EMBARRASSMENT (int): Embarrassment.
INTEREST (int): Interest.
PRIDE (int): Pride.
SADNESS (int): Sadness.
SURPRISE (int): Surprise.
"""
EMOTION_UNSPECIFIED = 0
AMUSEMENT = 1
ANGER = 2
CONCENTRATION = 3
CONTENTMENT = 4
DESIRE = 5
DISAPPOINTMENT = 6
DISGUST = 7
ELATION = 8
EMBARRASSMENT = 9
INTEREST = 10
PRIDE = 11
SADNESS = 12
SURPRISE = 13
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from google.cloud.videointelligence_v1p1beta1.gapic import enums
from google.cloud.videointelligence_v1p1beta1.gapic import video_intelligence_service_client_config
from google.cloud.videointelligence_v1p1beta1.proto import video_intelligence_pb2
from google.cloud.videointelligence_v1p1beta1.proto import video_intelligence_pb2_grpc
from google.longrunning import operations_pb2

_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
Expand Down Expand Up @@ -86,7 +87,7 @@ def __init__(self,

# Create the gRPC stubs.
self.video_intelligence_service_stub = (
video_intelligence_pb2.VideoIntelligenceServiceStub(channel))
video_intelligence_pb2_grpc.VideoIntelligenceServiceStub(channel))

# Operations client for methods that return long-running operations
# futures.
Expand Down
Loading

0 comments on commit 125f9eb

Please sign in to comment.