solved peculiar issue on width and height

This commit is contained in:
David PAGNON 2023-01-06 22:54:01 +01:00 committed by GitHub
parent 3a584a57c0
commit 1fe4bfe4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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