Skip to content

Commit

Permalink
Video Intelligence region tag update [(#1639)](#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored and leahecole committed Sep 15, 2023
1 parent 96cf3d9 commit c443f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions videointelligence/samples/analyze/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def analyze_labels(path):


def analyze_labels_file(path):
# [START video_analyze_labels_local]
# [START video_analyze_labels]
"""Detect labels given a file path."""
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.enums.Feature.LABEL_DETECTION]
Expand Down Expand Up @@ -207,7 +207,7 @@ def analyze_labels_file(path):
print('\tFirst frame time offset: {}s'.format(time_offset))
print('\tFirst frame confidence: {}'.format(frame.confidence))
print('\n')
# [END video_analyze_labels_local]
# [END video_analyze_labels]


def analyze_shots(path):
Expand Down
4 changes: 2 additions & 2 deletions videointelligence/samples/analyze/beta_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from google.cloud import videointelligence_v1p1beta1 as videointelligence


# [START video_speech_transcription]
# [START video_speech_transcription_gcs_beta]
def speech_transcription(input_uri):
"""Transcribe speech from a video stored on GCS."""
video_client = videointelligence.VideoIntelligenceServiceClient()
Expand Down Expand Up @@ -66,7 +66,7 @@ def speech_transcription(input_uri):
start_time.seconds + start_time.nanos * 1e-9,
end_time.seconds + end_time.nanos * 1e-9,
word))
# [END video_speech_transcription]
# [END video_speech_transcription_gcs_beta]


if __name__ == '__main__':
Expand Down

0 comments on commit c443f3a

Please sign in to comment.