添加旋转日志
This commit is contained in:
@@ -206,6 +206,9 @@ def mask_photo(img_url, name, id_card_num, color=(255, 255, 255)):
|
|||||||
if not is_masked:
|
if not is_masked:
|
||||||
# 如果旋转后也没有涂抹,恢复原来的方向
|
# 如果旋转后也没有涂抹,恢复原来的方向
|
||||||
image = original_image
|
image = original_image
|
||||||
|
else:
|
||||||
|
# 如果旋转有效果,打一个日志
|
||||||
|
logging.info(f"图片旋转了{angle}°")
|
||||||
|
|
||||||
return is_masked, image
|
return is_masked, image
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user