pycache update
This commit is contained in:
parent
b997b72bc9
commit
4f08bca925
|
@ -5,8 +5,10 @@
|
|||
*.avi
|
||||
.ipynb_checkpoints
|
||||
tutorial02.ipynb
|
||||
__pycache__
|
||||
utils/__pycache__
|
||||
|
||||
|
||||
help_test.py
|
||||
opencv_webcam copy.py
|
||||
test.py
|
||||
test.py
|
||||
|
|
|
@ -53,10 +53,10 @@ def frame_opt(frame, frame_savePath, frame_num, is_resizeFrame, resize_frame, re
|
|||
frame_namePrefix, frame_saveStyle, jpg_quality, png_quality):
|
||||
# 判断图片质量范围
|
||||
if (jpg_quality < 0 or jpg_quality > 100):
|
||||
print(f'JPG质量系数超出范围!')
|
||||
print(f'JPG质量系数超出范围!无法保存!')
|
||||
return
|
||||
if (png_quality < 0 or png_quality > 9):
|
||||
print(f'PNG质量系数超出范围!')
|
||||
print(f'PNG质量系数超出范围!无法保存!')
|
||||
return
|
||||
|
||||
if (is_resizeFrame): # resize frame
|
||||
|
@ -76,7 +76,7 @@ def frame_opt(frame, frame_savePath, frame_num, is_resizeFrame, resize_frame, re
|
|||
f'./{frame_savePath}/{frame_namePrefix}-{frame_num}.{frame_saveStyle}', frame_new,
|
||||
[int(cv2.IMWRITE_PNG_COMPRESSION), png_quality])
|
||||
else:
|
||||
print(f'帧格式有问题!')
|
||||
print(f'帧格式有问题!无法保存!')
|
||||
return
|
||||
else:
|
||||
if (frame_saveStyle == 'jpg'):
|
||||
|
@ -88,7 +88,7 @@ def frame_opt(frame, frame_savePath, frame_num, is_resizeFrame, resize_frame, re
|
|||
f'./{frame_savePath}/{frame_namePrefix}-{frame_num}.{frame_saveStyle}', frame,
|
||||
[int(cv2.IMWRITE_PNG_COMPRESSION), png_quality])
|
||||
else:
|
||||
print(f'帧格式有问题!')
|
||||
print(f'帧格式有问题!无法保存!')
|
||||
return
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue