v04 update
This commit is contained in:
parent
ff79a5b9ee
commit
677f40fade
|
@ -18,4 +18,5 @@ __pycache__
|
|||
|
||||
test.py
|
||||
/log
|
||||
/test
|
||||
/test
|
||||
/disk_test
|
|
@ -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
|
||||
|
|
|
@ -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质量系数超出范围!无法保存!')
|
||||
|
|
Loading…
Reference in New Issue