diff --git a/Pose2Sim/calibrate_cams.py b/Pose2Sim/calibrate_cams.py index e3b5e01..6d82e47 100644 --- a/Pose2Sim/calibrate_cams.py +++ b/Pose2Sim/calibrate_cams.py @@ -126,8 +126,8 @@ def read_qca(qca_path, binning_factor): # Image size for tag in root.findall('cameras/camera/fov_video'): - w = float(tag.attrib.get('right'))/binning_factor - h = float(tag.attrib.get('bottom'))/binning_factor + w = (float(tag.attrib.get('right')) - float(tag.attrib.get('left'))) /binning_factor + h = (float(tag.attrib.get('bottom')) - float(tag.attrib.get('top'))) /binning_factor S += [[w, h]] # Intrinsic parameters: distorsion and intrinsic matrix