calibration of none cameras in qca file

This commit is contained in:
davidpagnon 2023-01-02 23:28:32 +01:00
parent 5689721144
commit d1dee51a01

View File

@ -57,7 +57,7 @@ def calib_qca_fun(config):
''' '''
Convert a Qualisys .qca.txt calibration file Convert a Qualisys .qca.txt calibration file
Converts from camera view to object view, Pi rotates cameras, Converts from camera view to object view, Pi rotates cameras,
and converts rotation with Roodrigues formula and converts rotation with Rodrigues formula
INPUTS: INPUTS:
- a Config.toml file - a Config.toml file
@ -120,7 +120,7 @@ def read_qca(qca_path, binning_factor):
# Camera name # Camera name
for tag in root.findall('cameras/camera'): for tag in root.findall('cameras/camera'):
if tag.attrib.get('model')=='Miqus Video': if tag.attrib.get('model') in ('Miqus Video', 'none'):
ret += [float(tag.attrib.get('avg-residual'))/1000] ret += [float(tag.attrib.get('avg-residual'))/1000]
C += [tag.attrib.get('serial')] C += [tag.attrib.get('serial')]