mirror of
https://github.com/NanjingForestryUniversity/supermachine-tobacco.git
synced 2025-11-08 22:33:54 +00:00
修改了现场一个小bug
This commit is contained in:
parent
e74aad7b36
commit
b2f5cf276c
4
main.py
4
main.py
@ -26,10 +26,10 @@ def main(only_spec=False, only_color=False, if_merge=False, interval_time=None,
|
|||||||
total_rgb = Config.nRgbRows * Config.nRgbCols * Config.nRgbBands * 1 # int型变量
|
total_rgb = Config.nRgbRows * Config.nRgbCols * Config.nRgbBands * 1 # int型变量
|
||||||
log_file_name = datetime.now().strftime('%Y_%m_%d__%H_%M_%S.log')
|
log_file_name = datetime.now().strftime('%Y_%m_%d__%H_%M_%S.log')
|
||||||
if single_spec:
|
if single_spec:
|
||||||
os.mkdirs(Path(Config.root_dir) / Path(Config.rgb_log_dir), exist_ok=True)
|
os.makedirs(Path(Config.root_dir) / Path(Config.rgb_log_dir), exist_ok=True)
|
||||||
log_path = Path(Config.root_dir) / Path(Config.rgb_log_dir) / log_file_name
|
log_path = Path(Config.root_dir) / Path(Config.rgb_log_dir) / log_file_name
|
||||||
if single_color:
|
if single_color:
|
||||||
os.mkdirs(Path(Config.root_dir) / Path(Config.spec_log_dir), exist_ok=True)
|
os.makedirs(Path(Config.root_dir) / Path(Config.spec_log_dir), exist_ok=True)
|
||||||
log_path = Path(Config.root_dir) / Path(Config.spec_log_dir) / log_file_name
|
log_path = Path(Config.root_dir) / Path(Config.spec_log_dir) / log_file_name
|
||||||
if not single_color:
|
if not single_color:
|
||||||
logging.info("create color fifo")
|
logging.info("create color fifo")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user