File tree 2 files changed +4
-4
lines changed
videointelligence/samples/analyze
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def analyze_labels(path):
136
136
137
137
138
138
def analyze_labels_file (path ):
139
- # [START video_analyze_labels_local ]
139
+ # [START video_analyze_labels ]
140
140
"""Detect labels given a file path."""
141
141
video_client = videointelligence .VideoIntelligenceServiceClient ()
142
142
features = [videointelligence .enums .Feature .LABEL_DETECTION ]
@@ -207,7 +207,7 @@ def analyze_labels_file(path):
207
207
print ('\t First frame time offset: {}s' .format (time_offset ))
208
208
print ('\t First frame confidence: {}' .format (frame .confidence ))
209
209
print ('\n ' )
210
- # [END video_analyze_labels_local ]
210
+ # [END video_analyze_labels ]
211
211
212
212
213
213
def analyze_shots (path ):
Original file line number Diff line number Diff line change 27
27
from google .cloud import videointelligence_v1p1beta1 as videointelligence
28
28
29
29
30
- # [START video_speech_transcription ]
30
+ # [START video_speech_transcription_gcs_beta ]
31
31
def speech_transcription (input_uri ):
32
32
"""Transcribe speech from a video stored on GCS."""
33
33
video_client = videointelligence .VideoIntelligenceServiceClient ()
@@ -66,7 +66,7 @@ def speech_transcription(input_uri):
66
66
start_time .seconds + start_time .nanos * 1e-9 ,
67
67
end_time .seconds + end_time .nanos * 1e-9 ,
68
68
word ))
69
- # [END video_speech_transcription ]
69
+ # [END video_speech_transcription_gcs_beta ]
70
70
71
71
72
72
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments