Skip to content

Commit b6fa39d

Browse files
gcf-owl-bot[bot]leahecole
authored andcommitted
1 parent f1eb418 commit b6fa39d

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

‎videointelligence/samples/analyze/analyze.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ def speech_transcription(path):
287287
# one video is processed.
288288
annotation_results = result.annotation_results[0]
289289
for speech_transcription in annotation_results.speech_transcriptions:
290-
291290
# The number of alternatives for each transcription is limited by
292291
# SpeechTranscriptionConfig.max_alternatives.
293292
# Each alternative is a different possible transcription
@@ -363,7 +362,6 @@ def video_detect_text_gcs(input_uri):
363362

364363
# [START video_detect_text]
365364
def video_detect_text(path):
366-
367365
"""Detect text in a local video."""
368366
video_client = videointelligence.VideoIntelligenceServiceClient()
369367
features = [videointelligence.Feature.TEXT_DETECTION]

‎videointelligence/samples/analyze/beta_snippets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def speech_transcription(input_uri, timeout=180):
7979
# one video is processed.
8080
annotation_results = result.annotation_results[0]
8181
for speech_transcription in annotation_results.speech_transcriptions:
82-
8382
# The number of alternatives for each transcription is limited by
8483
# SpeechTranscriptionConfig.max_alternatives.
8584
# Each alternative is a different possible transcription

‎videointelligence/samples/analyze/video_detect_logo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def detect_logo(local_file_path="path/to/your/video.mp4"):
6969

7070
# The object with timestamp and attributes per frame in the track.
7171
for timestamped_object in track.timestamped_objects:
72-
7372
# Normalized Bounding box in a frame, where the object is located.
7473
normalized_bounding_box = timestamped_object.normalized_bounding_box
7574
print("\n\t\tLeft : {}".format(normalized_bounding_box.left))

‎videointelligence/samples/analyze/video_detect_logo_gcs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
def detect_logo_gcs(input_uri="gs://YOUR_BUCKET_ID/path/to/your/file.mp4"):
21-
2221
client = videointelligence.VideoIntelligenceServiceClient()
2322

2423
features = [videointelligence.Feature.LOGO_RECOGNITION]
@@ -46,7 +45,6 @@ def detect_logo_gcs(input_uri="gs://YOUR_BUCKET_ID/path/to/your/file.mp4"):
4645
# All logo tracks where the recognized logo appears. Each track corresponds
4746
# to one logo instance appearing in consecutive frames.
4847
for track in logo_recognition_annotation.tracks:
49-
5048
# Video segment of a track.
5149
print(
5250
"\n\tStart Time Offset : {}.{}".format(

0 commit comments

Comments
 (0)