diff --git a/video/cloud-client/analyze/analyze.py b/video/cloud-client/analyze/analyze.py index 85a536e1cb5..fcfa535c893 100644 --- a/video/cloud-client/analyze/analyze.py +++ b/video/cloud-client/analyze/analyze.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2017 Google Inc. All Rights Reserved. +# Copyright 2017 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ def analyze_explicit_content(path): result = operation.result(timeout=90) print("\nFinished processing.") - # first result is retrieved because a single video was processed + # Retrieve first result because a single video was processed for frame in result.annotation_results[0].explicit_annotation.frames: likelihood = enums.Likelihood(frame.pornography_likelihood) frame_time = frame.time_offset.seconds + frame.time_offset.nanos / 1e9