修正高清图片为空的判断

This commit is contained in:
2025-04-01 15:24:32 +08:00
parent 5287df4959
commit 0de9fc14b5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
x-env: x-env:
&template &template
image: fcb_photo_review:1.15.0 image: fcb_photo_review:1.15.1
restart: always restart: always
x-review: x-review:

View File

@@ -260,7 +260,7 @@ def information_extraction(ie, phrecs, identity):
session.commit() session.commit()
# 添加清晰度测试 # 添加清晰度测试
if not better_image: if better_image is None:
# 替换后图片默认清晰 # 替换后图片默认清晰
clarity_result = image_util.parse_clarity(image) clarity_result = image_util.parse_clarity(image)
unsharp_flag = 0 if (clarity_result[0] == 0 and clarity_result[1] >= 0.8) else 1 unsharp_flag = 0 if (clarity_result[0] == 0 and clarity_result[1] >= 0.8) else 1