diff --git a/opencv_webcam.py b/opencv_webcam.py index 193a57f..a647c1e 100644 --- a/opencv_webcam.py +++ b/opencv_webcam.py @@ -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() # 起始时间 diff --git a/utils/compress.py b/utils/compress.py index 9c49550..388afa2 100644 --- a/utils/compress.py +++ b/utils/compress.py @@ -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: