mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Add assertion to verify length of analyzed objects.
As mentioned: https://github.com/serengil/deepface/pull/1396#discussion_r1900012703
This commit is contained in:
parent
b69dcfcca7
commit
0f65a8765e
@ -142,6 +142,7 @@ def test_analyze_for_multiple_faces():
|
||||
img = cv2.imread(img)
|
||||
img = cv2.hconcat([img, img])
|
||||
demography_objs = DeepFace.analyze(img, silent=True)
|
||||
assert len(demography_objs) == 2
|
||||
for demography in demography_objs:
|
||||
logger.debug(demography)
|
||||
assert demography["age"] > 20 and demography["age"] < 40
|
||||
|
Loading…
x
Reference in New Issue
Block a user