Skip to content

Commit

Permalink
Video Intelligence region tag update [(#1639)](GoogleCloudPlatform/py…
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored and danoscarmike committed Sep 30, 2020
1 parent cd6bb2f commit 6726245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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
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 6726245

Please sign in to comment.