modify frame range from max to min (#138)

This commit is contained in:
HunMinKim 2024-10-21 22:57:10 +09:00 committed by GitHub
parent b690bf567e
commit d1274872aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -764,7 +764,7 @@ def triangulate_all(config_dict):
json_files_names = [sort_stringlist_by_last_number(js) for js in json_files_names] json_files_names = [sort_stringlist_by_last_number(js) for js in json_files_names]
# frame range selection # frame range selection
f_range = [[0,max([len(j) for j in json_files_names])] if frame_range==[] else frame_range][0] f_range = [[0,min([len(j) for j in json_files_names])] if frame_range==[] else frame_range][0]
frame_nb = f_range[1] - f_range[0] frame_nb = f_range[1] - f_range[0]
# Check that camera number is consistent between calibration file and pose folders # Check that camera number is consistent between calibration file and pose folders