helmet2 bug
This commit is contained in:
parent
1bdb26b7fa
commit
7722a82a04
|
@ -31,7 +31,7 @@ def ai_analyse(codes: list, global_img: str, face_img: str = None):
|
|||
if face_img:
|
||||
is_happend, res = f(ip=settings.AI_IP, pic_url=face_img)
|
||||
else:
|
||||
is_happend, res = getattr(m, 'helmet2')(ip=settings.AI_IP, pic_url=face_img)
|
||||
is_happend, res = getattr(m, 'helmet2')(ip=settings.AI_IP, pic_url=global_img)
|
||||
else:
|
||||
is_happend, res = f(ip=settings.AI_IP, pic_url=global_img)
|
||||
if is_happend:
|
||||
|
|
|
@ -45,7 +45,7 @@ def get_area_info_from_cache(target: str, cache: list):
|
|||
|
||||
|
||||
def save_dahua_pic(pic_url: str):
|
||||
"""保存大华报警图片到本地
|
||||
"""保存大华报警图片到本地(全路径)
|
||||
返回本地路径
|
||||
"""
|
||||
file_name = pic_url.split('/')[-1].split('?')[0]
|
||||
|
|
Loading…
Reference in New Issue