添加旋转日志

This commit is contained in:
2024-08-02 15:20:53 +08:00
parent 8a56308b03
commit b0b45d5adc

View File

@@ -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