ai_analyse bug
This commit is contained in:
parent
5f3eee5c7c
commit
ae2397595f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue