ai_analyse bug

This commit is contained in:
caoqianming 2022-10-27 13:19:58 +08:00
parent 5f3eee5c7c
commit ae2397595f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def ai_analyse(codes: list, global_img: str, face_img: str = None, is_dahua_pic:
myLogger.error('算法处理错误', exc_info=True)
if is_dahua_pic:
os.remove(settings.BASE_DIR + global_img_path) # 删除临时图片
if face_img_path:
if face_img:
os.remove(settings.BASE_DIR + face_img_path)
return results