Combine json files containing COCO person keypoint annotations
问题 I've annotated some images using the coco-annotator. I'd like to combine these annotations with the existing one ("person_keypoints_train2017.json" and "person_keypoints_val2017.json"). Has anyone ever managed to do so? If yes, how? (preferrably using python) 回答1: json vlaues can be accessed using the json module try reading both the files and hence decide what values to combine: import json from collections import OrderedDict filename1 = "person_keypoints_train2017.json" with open(filename1)