Fix non-video camera filtering in Vicon calibration
This commit is contained in:
parent
ca16612c63
commit
29e83c803d
@ -295,7 +295,7 @@ def read_vicon(vicon_path):
|
||||
T += [[float(t)/1000 for t in trans]]
|
||||
|
||||
# Camera names by natural order
|
||||
C_vid_id = [v for v in vid_id if 'VIDEO' in root.findall('Camera')[v].attrib.get('TYPE')]
|
||||
C_vid_id = [v for v in vid_id if ('VIDEO' or 'Video') in root.findall('Camera')[v].attrib.get('TYPE')]
|
||||
C_vid = [root.findall('Camera')[v].attrib.get('DEVICEID') for v in C_vid_id]
|
||||
C = natural_sort(C_vid)
|
||||
C_id_sorted = [i for v_sorted in C for i,v in enumerate(root.findall('Camera')) if v.attrib.get('DEVICEID')==v_sorted]
|
||||
@ -1287,4 +1287,4 @@ def calibrate_cams_all(config):
|
||||
toml_write(calib_output_path, C, S, D, K, R, T)
|
||||
|
||||
# Recap message
|
||||
recap_calibrate(ret, calib_output_path, calib_full_type)
|
||||
recap_calibrate(ret, calib_output_path, calib_full_type)
|
||||
|
Loading…
Reference in New Issue
Block a user