18ec65e748271faa591204c51033156724a59e23,video/cloud-client/shotchange/shotchange.py,,analyze_shots,#Any#,40
Before Change
print("\nProcessing video for shot change annotations:")
// [START check_operation]
while not operation.done():
sys.stdout.write(".")
sys.stdout.flush()
time.sleep(20)
print("\nFinished processing.")
// [END check_operation]
// [START parse_response]
shots = operation.result().annotation_results[0].shot_annotations
for i, shot in enumerate(shots):
start_time = (shot.start_time_offset.seconds +
shot.start_time_offset.nanos / 1e9)
After Change
print("\nProcessing video for shot change annotations:")
// [START check_operation]
result = operation.result(timeout=90)
print("\nFinished processing.")
// [END check_operation]
// [START parse_response]
for i, shot in enumerate(result.annotation_results[0].shot_annotations):
start_time = (shot.start_time_offset.seconds +
shot.start_time_offset.nanos / 1e9)
end_time = (shot.end_time_offset.seconds +
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 20
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 18ec65e748271faa591204c51033156724a59e23
Time: 2017-11-29
Author: dizcology@hotmail.com
File Name: video/cloud-client/shotchange/shotchange.py
Class Name:
Method Name: analyze_shots
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 18ec65e748271faa591204c51033156724a59e23
Time: 2017-11-29
Author: dizcology@hotmail.com
File Name: video/cloud-client/analyze/analyze.py
Class Name:
Method Name: analyze_shots
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 18ec65e748271faa591204c51033156724a59e23
Time: 2017-11-29
Author: dizcology@hotmail.com
File Name: video/cloud-client/shotchange/shotchange.py
Class Name:
Method Name: analyze_shots
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 18ec65e748271faa591204c51033156724a59e23
Time: 2017-11-29
Author: dizcology@hotmail.com
File Name: video/cloud-client/analyze/analyze.py
Class Name:
Method Name: analyze_explicit_content