v04 update

This commit is contained in:
13339479676 2022-01-17 20:11:59 +08:00
parent ff79a5b9ee
commit 677f40fade
4 changed files with 14 additions and 5 deletions

3
.gitignore vendored
View File

@ -18,4 +18,5 @@ __pycache__
test.py
/log
/test
/test
/disk_test

View File

@ -11,7 +11,7 @@ import os
import sys
import yaml
from utils.ows_path import increment_path
from utils.hotkeyjudge import hotkey_judge
from utils.hotkey import hotkey_judge
from utils.frame_opt import frame_opt
from utils.log import is_logSuffix, log_management
from utils.args_yaml import argsYaml

View File

@ -2,14 +2,22 @@
# 创建人:曾逸夫
# 创建时间2022-01-04
import cv2
import sys
# 帧保存
def frame_opt(frame, frame_savePath, frame_num, is_resizeFrame, resize_frame, resizeRatio_frame,
frame_namePrefix, frame_saveStyle, jpg_quality, png_quality):
def frame_opt(frame,
frame_savePath,
frame_num,
is_resizeFrame,
resize_frame,
resizeRatio_frame,
frame_namePrefix,
frame_saveStyle,
jpg_quality,
png_quality):
# 判断图片质量范围
if (jpg_quality < 0 or jpg_quality > 100):
print(f'JPG质量系数超出范围无法保存')