From 7762b189be8881ff343a0fff128378994306cbbb Mon Sep 17 00:00:00 2001 From: David PAGNON Date: Fri, 6 Jan 2023 22:54:47 +0100 Subject: [PATCH] solved peculiar issue on width and height --- Pose2Sim/Utilities/calib_qca_to_toml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pose2Sim/Utilities/calib_qca_to_toml.py b/Pose2Sim/Utilities/calib_qca_to_toml.py index 5628d47..64eaad2 100644 --- a/Pose2Sim/Utilities/calib_qca_to_toml.py +++ b/Pose2Sim/Utilities/calib_qca_to_toml.py @@ -60,8 +60,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