[microsoft_face] Small error fixes (#5577)
* [microsoft_face] Small error fixes * add array to exclusion
This commit is contained in:
1 parent
eadf67bd9a
commit
636e7aa31e
3 files changed
+6
-4
No files matched your search
@@ -160,8 +160,10 @@ class MicrosoftFaceIdentifyEntity(ImageProcessingFaceIdentifyEntity):
|
||||
face_data = yield from self._api.call_api(
|
||||
'post', 'detect', image, binary=True)
|
||||
|
||||
face_ids = [data['faceId'] for data in face_data]
|
||||
if face_data is None or len(face_data) < 1:
|
||||
return
|
||||
|
||||
face_ids = [data['faceId'] for data in face_data]
|
||||
detect = yield from self._api.call_api(
|
||||
'post', 'identify',
|
||||
{'faceIds': face_ids, 'personGroupId': self._face_group})
|
||||
|
||||
Reference in new issue
Block a user