修正高清图片为空的判断
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
x-env:
|
||||
&template
|
||||
image: fcb_photo_review:1.15.0
|
||||
image: fcb_photo_review:1.15.1
|
||||
restart: always
|
||||
|
||||
x-review:
|
||||
|
||||
@@ -260,7 +260,7 @@ def information_extraction(ie, phrecs, identity):
|
||||
session.commit()
|
||||
|
||||
# 添加清晰度测试
|
||||
if not better_image:
|
||||
if better_image is None:
|
||||
# 替换后图片默认清晰
|
||||
clarity_result = image_util.parse_clarity(image)
|
||||
unsharp_flag = 0 if (clarity_result[0] == 0 and clarity_result[1] >= 0.8) else 1
|
||||
|
||||
Reference in New Issue
Block a user