Skip to content

Commit 60239e9

Browse files
author
ChrisMaunder
committed
Corrected output for "no faces found"
1 parent 1f21692 commit 60239e9

File tree

1 file changed

+1
-1
lines changed
  • src/AnalysisLayer/Vision/intelligencelayer

1 file changed

+1
-1
lines changed

src/AnalysisLayer/Vision/intelligencelayer/face.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def recognise_face(_: CodeProjectAIRunner, data: AIRequestData) -> JSON:
485485

486486
if found_face == False:
487487

488-
output = {"success": False, "error": "No face found in image"}
488+
output = {"success": True, "predictions": [], "message": "No face found in image"}
489489

490490
elif len(facemap) == 0:
491491

0 commit comments

Comments
 (0)