Give RGB, Blue priority

pull/1701/head
Piero Toffanin 2023-09-29 13:11:11 -04:00
rodzic 5988be1f57
commit f6be28db2a
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -181,8 +181,11 @@ def get_primary_band_name(multi_camera, user_band_name):
if len(multi_camera) < 1:
raise Exception("Invalid multi_camera list")
# multi_camera is already sorted by band_index
# Pick RGB, or Blue if available, otherwise first band
if user_band_name == "auto":
for band in multi_camera:
if band['name'].lower() in ['rgb', 'redgreenblue', 'blue', 'b']:
return band['name']
return multi_camera[0]['name']
for band in multi_camera: