Skip to content

Commit

Permalink
Change eyes_closed to eye_states
Browse files Browse the repository at this point in the history
  • Loading branch information
jdddog committed May 29, 2018
1 parent d6977a1 commit a665465
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sensor_msgs/RegionOfInterest roi
geometry_msgs/Point[] shapes
string face_id
float32[] emotions
float32[] eyes_closed
float32[] eye_states
```

Probabilistic output at `/faces` outputs the following Feature.msg message. Note the added information of position and certainty added in this stage. Also note that all attributes can be empty in case of detection failure.
Expand All @@ -45,7 +45,7 @@ float32 certainty
geometry_msgs/Point[] shapes
string face_id
float32[] emotions
float32[] eyes_closed
float32[] eye_states
```

## Dependencies
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def debug_draw(self):
cv2.FONT_HERSHEY_DUPLEX, 0.55, cnn_clr)
p += 1

for p, eye in enumerate(ftr.eyes_closed):
for p, eye in enumerate(ftr.eye_states):
cv2.rectangle(frame, (d.x_offset + (p * 20), d.y_offset + (int(eye * 80))),
(d.x_offset + (p * 20) + 20, d.y_offset), shp_clr, -1)

Expand Down
2 changes: 1 addition & 1 deletion scripts/run_frontal_face_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def features_callback(self, msg):
ftr.emotions = emotion_result.get().emotions

if self.cfg.run_eye_state:
ftr.eyes_closed = eye_state_result.get().eyes_closed
ftr.eye_states = eye_state_result.get().eye_states
except Exception as e:
rospy.logerr("Exception getting features: {0}".format(e))

Expand Down
2 changes: 1 addition & 1 deletion srv/EyeState.srv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sensor_msgs/Image image
geometry_msgs/Point[] landmarks
---
float32[] eyes_closed
float32[] eye_states

0 comments on commit a665465

Please sign in to comment.