Skip to content

Commit dca721d

Browse files
alixhamidanoscarmike
authored andcommitted
Video Intelligence region tag update [(#1639)](#1639)
1 parent 740dd4b commit dca721d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

videointelligence/samples/analyze/analyze.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def analyze_labels(path):
136136

137137

138138
def 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('\tFirst frame time offset: {}s'.format(time_offset))
208208
print('\tFirst frame confidence: {}'.format(frame.confidence))
209209
print('\n')
210-
# [END video_analyze_labels_local]
210+
# [END video_analyze_labels]
211211

212212

213213
def analyze_shots(path):

videointelligence/samples/analyze/beta_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from google.cloud import videointelligence_v1p1beta1 as videointelligence
2828

2929

30-
# [START video_speech_transcription]
30+
# [START video_speech_transcription_gcs_beta]
3131
def 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

7272
if __name__ == '__main__':

0 commit comments

Comments
 (0)