Closed Maximellerbach closed 2 years ago
what do you mean by combining both ?
@DieuCrevette load an image associated to a json file. A function that takes as input the path of the json file, deduce the path of the image (remove the .json and add the .png) and then load the image. Then return the image and json. pseudo code example:
def load_both (json_path):
json_data = load_json(json_path)
image_path = get_image_path(json_data)
image = load_image(image_path)
return image, json_data
Load and save images using opencv (cv2)