def load_calibration(directory, file_name):
    with open((directory + file_name), 'r') as f:
        D = json.load(f)
    (K1, D1, H1) = read_calibration(D['cameras'][0], True)
    (K2, D2) = read_calibration(D['cameras'][1])
    return (K1, D1, K2, D2, H1)
def load_calibration(directory, file_name):
    with open((directory + file_name), 'r') as f:
        D = json.load(f)
    (K1, D1, H1) = read_calibration(D['cameras'][0], True)
    (K2, D2) = read_calibration(D['cameras'][1])
    return (K1, D1, K2, D2, H1)