v05 plot update 02
This commit is contained in:
parent
93cf51002a
commit
85b802fb41
14
utils/log.py
14
utils/log.py
|
@ -28,17 +28,3 @@ def log_management(logContent, logName, logSaveMode):
|
|||
def date_time_frames(date_time, frames):
|
||||
f = open(f'{ROOT_PATH}/date_time_frames.csv', 'a')
|
||||
f.write(f'{date_time},{frames}\n')
|
||||
|
||||
# print(f'csv保存成功!')
|
||||
|
||||
|
||||
# 日志读取时间和帧数
|
||||
# def log2date_frames(log_path="../ows.log"):
|
||||
# f = open(log_path, 'r') # 读取日志
|
||||
# f_list = f.read().split('\n')[:-1] # 转换成列表
|
||||
|
||||
# for i in range(len(f_list)):
|
||||
# mat = re.search(
|
||||
# r"(\d{4}-\d{1,2}-\d{1,2}\s\d{1,2}:\d{1,2}:\d{1,2})", f_list[i])
|
||||
# if (mat != None):
|
||||
# print(f'{i, f_list[i]}')
|
||||
|
|
Loading…
Reference in New Issue