v04 update

This commit is contained in:
13339479676 2022-01-22 09:46:42 +08:00
parent 79443696c2
commit 5125ba787d
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ def webcam_opencv(device_index="0",
is_compressFile(compressStyle) # 检测压缩文件格式
time_list = [1, 60, 3600] # 时间参数列表
# time_list = [1, 60, 3600] # 时间参数列表
# ------------------程序开始------------------
s_time = time.time() # 起始时间

View File

@ -42,7 +42,7 @@ def webcam_compress(compressStyle, is_autoCompressName, compressName, preCompres
compressing_file = f'{preCompressFilePath}/{i}'
compress_file.write(
compressing_file, compress_type=zipfile.ZIP_DEFLATED) # 写入zip文件
if (compressStyle == COMPRESS_SUFFIX[1]):
elif (compressStyle == COMPRESS_SUFFIX[1]):
# tar压缩
compress_file = tarfile.open(compressName, compressMode)
for i in file_tqdm: