-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
add video streaming samples #2047
add video streaming samples #2047
Conversation
@@ -274,6 +288,290 @@ def track_objects(path): | |||
return object_annotations | |||
|
|||
|
|||
def detect_labels_streaming(path): | |||
# [START video_streaming_label_detection_beta] | |||
from google.cloud import videointelligence_v1p3beta1 as videointelligence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a commented out variable path
if you don't include the method def.
// path = 'path_to_file'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
break | ||
|
||
for annotation in response.annotation_results.shot_annotations: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the 1 thing is needed to add the commented out variables to make the code copy-paste runnable. But looks good.
…-samples#2047) * add video streaming samples * address review comments * flake * flake * flake
…-samples#2047) * add video streaming samples * address review comments * flake * flake * flake
…-samples#2047) * add video streaming samples * address review comments * flake * flake * flake
Video Intelligence API streaming samples.