speech_config = videointelligence.types.SpeechTranscriptionConfig(
language_code='en-US',
enable_automatic_punctuation=True)
label_config = videointelligence.types.LabelDetectionConfig(stationary_camera=True)...video_context = videointelligence.types.VideoContext(
speech_transcription_config=speech_config, label_detection_config=label_config,...)
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/54283e4a-7189-456b-b105-1183e26cf055%40googlegroups.com.
| Lei Yang (杨蕾) | | Software Engineer, Play | | yanga...@google.com | | 650-214-4097 |
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/aeff2420-9710-4361-beed-4ab7b46c2646%40googlegroups.com.
# initialize videointelligence client
video_client = videointelligence.VideoIntelligenceServiceClient(credentials=credentialsFromVault)
# declare features to process
features = [videointelligence.enums.Feature.LABEL_DETECTION, videointelligence.enums.Feature.SHOT_CHANGE_DETECTION,
videointelligence.enums.Feature.SPEECH_TRANSCRIPTION]
# setup configs
label_config = videointelligence.types.LabelDetectionConfig()
shot_config = videointelligence.types.ShotChangeDetectionConfig()
speech_config = videointelligence.types.SpeechTranscriptionConfig(language_code='en-US', enable_automatic_punctuation=True)
# run file through videointelligence client
video_context = videointelligence.types.VideoContext(label_detection_config=label_config,
shot_change_detection_config=shot_config,
speech_transcription_config=speech_config)
print('\nProcessing video for labels, shot changes, text, and speech.')
operation = video_client.annotate_video('gs://video_path/'+x, features=features, video_context=video_context)
result = operation.result(timeout=1500)
print('Finished processing '+ x)# initialize videointelligence client
video_client = videointelligence.VideoIntelligenceServiceClient(credentials=credentialsFromVault)
# declare features to process
features = [videointelligence.enums.Feature.LABEL_DETECTION, videointelligence.enums.Feature.SHOT_CHANGE_DETECTION,
videointelligence.enums.Feature.SPEECH_TRANSCRIPTION, videointelligence.enums.Feature.TEXT_DETECTION]
# setup configs
label_config = videointelligence.types.LabelDetectionConfig()
shot_config = videointelligence.types.ShotChangeDetectionConfig()
text_config = videointelligence.types.TextDetectionConfig()
speech_config = videointelligence.types.SpeechTranscriptionConfig(language_code='en-US', enable_automatic_punctuation=True)
# run file through videointelligence client
video_context = videointelligence.types.VideoContext(label_detection_config=label_config,
shot_change_detection_config=shot_config,
speech_transcription_config=speech_config,
text_detection_config=text_config)
print('\nProcessing video for labels, shot changes, text, and speech.')
operation = video_client.annotate_video('gs://video_path/'+x, features=features, video_context=video_context)
result = operation.result(timeout=1500)
print('Finished processing '+ x)To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/54283e4a-7189-456b-b105-1183e26cf055%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/54283e4a-7189-456b-b105-1183e26cf055%40googlegroups.com.
--
Lei Yang (杨蕾) | Software Engineer, Play | yanga...@google.com | 650-214-4097
---------------------------------------------------------
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/c83b3d4f-b358-40ab-85fc-568533bd5549%40googlegroups.com.