实现向分组中添加单个人脸服务
This commit is contained in:
parent
55b9a5cbfb
commit
8fcfeafcbd
@ -181,7 +181,7 @@ async def get_all_employee_pictures(pageNo=1, pageSize=500):
|
||||
async def face_group_addition_service(name, description):
|
||||
result = await HaikangUtil.face_group_addition(name, description)
|
||||
print(result)
|
||||
with open("face_group_addition_service.json", "w", encoding="utf-8") as f:
|
||||
with open("face_group_addition_service.json", "a", encoding="utf-8") as f:
|
||||
f.write(json.dumps(result[1]))
|
||||
|
||||
# 向分组中添加单个人脸
|
||||
@ -202,7 +202,7 @@ async def face_single_addition_service(faceGroupIndexCode, image_path, name):
|
||||
|
||||
result = await HaikangUtil.face_single_addition(faceGroupIndexCode, faceInfo, facePic)
|
||||
print(result)
|
||||
with open("face_single_addition_service.json", "w", encoding="utf-8") as f:
|
||||
with open("face_single_addition_service.json", "a", encoding="utf-8") as f:
|
||||
f.write(json.dumps(result[1]))
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user