File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
videointelligence/samples/analyze Expand file tree Collapse file tree 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):
136136
137137
138138def analyze_labels_file (path ):
139- # [START video_analyze_labels_local ]
139+ # [START video_analyze_labels ]
140140 """Detect labels given a file path."""
141141 video_client = videointelligence .VideoIntelligenceServiceClient ()
142142 features = [videointelligence .enums .Feature .LABEL_DETECTION ]
@@ -207,7 +207,7 @@ def analyze_labels_file(path):
207207 print ('\t First frame time offset: {}s' .format (time_offset ))
208208 print ('\t First frame confidence: {}' .format (frame .confidence ))
209209 print ('\n ' )
210- # [END video_analyze_labels_local ]
210+ # [END video_analyze_labels ]
211211
212212
213213def analyze_shots (path ):
Original file line number Diff line number Diff line change 2727from google .cloud import videointelligence_v1p1beta1 as videointelligence
2828
2929
30- # [START video_speech_transcription ]
30+ # [START video_speech_transcription_gcs_beta ]
3131def speech_transcription (input_uri ):
3232 """Transcribe speech from a video stored on GCS."""
3333 video_client = videointelligence .VideoIntelligenceServiceClient ()
@@ -66,7 +66,7 @@ def speech_transcription(input_uri):
6666 start_time .seconds + start_time .nanos * 1e-9 ,
6767 end_time .seconds + end_time .nanos * 1e-9 ,
6868 word ))
69- # [END video_speech_transcription ]
69+ # [END video_speech_transcription_gcs_beta ]
7070
7171
7272if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments