Skip to content

Commit

Permalink
Receptionist recognise and look at (LASR-at-Home#220)
Browse files Browse the repository at this point in the history
Co-authored-by: Jared Swift <j.w.swift@outlook.com>
  • Loading branch information
2 people authored and Benteng Ma committed Jun 21, 2024
1 parent 9614dc5 commit a7d9609
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions skills/src/lasr_skills/look_at_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ def execute(self, userdata):
else:
return "failed"

if self._filter:
if userdata.deepface_detection:
deepface = userdata.deepface_detection[0]
for bbox in userdata.bbox_eyes:
if bbox["bbox"] == deepface:
userdata.bbox_eyes = [bbox]
break
else:
return "failed"

for det in userdata.bbox_eyes:
left_eye = det["left_eye"]
right_eye = det["right_eye"]
Expand Down

0 comments on commit a7d9609

Please sign in to comment.