a75e025e4b1c570f1c88384e107aaf2c8f8a0fd4,video/cloud-client/quickstart/quickstart.py,,run_quickstart,#,24
Before Change
for label in results.label_annotations:
print("Label description: {}".format(label.description))
print("Locations:")
for l, location in enumerate(label.locations):
positions = "Entire video"
if (location.segment.start_time_offset != -1 or
After Change
// first result is retrieved because a single video was processed
results = operation.result().annotation_results[0]
for i, segment_label in enumerate(results.segment_label_annotations):
print("Video label description: {}".format(
segment_label.entity.description))
for category_entity in segment_label.category_entities:
print("\tLabel category description: {}".format(
category_entity.description))
for i, segment in enumerate(segment_label.segments):
start_time = (segment.segment.start_time_offset.seconds +
segment.segment.start_time_offset.nanos / 1e9)
end_time = (segment.segment.end_time_offset.seconds +
segment.segment.end_time_offset.nanos / 1e9)
positions = "{}s to {}s".format(start_time, end_time)
confidence = segment.confidence
print("\tSegment {}: {}".format(i, positions))
print("\tConfidence: {}".format(confidence))
print("\n")
// [END videointelligence_quickstart]
if __name__ == "__main__":
run_quickstart()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a75e025e4b1c570f1c88384e107aaf2c8f8a0fd4
Time: 2017-09-19
Author: dizcology@hotmail.com
File Name: video/cloud-client/quickstart/quickstart.py
Class Name:
Method Name: run_quickstart
Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 4aafb1f432f7622bec2cb35b9d6a6165babd44d9
Time: 2017-11-23
Author: daniel@kukiela.pl
File Name: inference.py
Class Name:
Method Name:
Project Name: EpistasisLab/tpot
Commit Name: d554d2ce78425cc70f690ad76972949c94fc6a7e
Time: 2016-08-23
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name:
Method Name: main
Project Name: flow-project/flow
Commit Name: f21b5c78974b522830866ed2fc3e6a4fea779b6b
Time: 2017-06-15
Author: eugenevinitsky@airbears2-10-142-39-100.airbears2.1918.berkeley.edu
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: RLOnlyLane
Method Name: compute_reward
Project Name: facebookresearch/Horizon
Commit Name: 6637df82b221d6383a921802d2163ab333597522
Time: 2019-01-18
Author: chenz@instagram.com
File Name: ml/rl/test/gridworld/gridworld_evaluator.py
Class Name: GridworldEvaluator
Method Name: evaluate_predictions