Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate videointelligence v1p1beta1 #5165

Merged
merged 2 commits into from
Apr 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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