cozmo.faces
Face recognition and enrollment.
Cozmo is capable of recognizing human faces, tracking their position and rotation (“pose”) and assigning names to them via an enrollment process.
The cozmo.world.World
object keeps track of faces the robot currently
knows about, along with those that are currently visible to the camera.
Each face is assigned a Face
object, which generates a number of
observable events whenever the face is observed, has its ID updated, is
renamed, etc.
Note that these face-specific events are also passed up to the
cozmo.world.World
object, so events for all known faces can be
observed by adding handlers there.
Module Attributes
|
Length of time in seconds to go without receiving an observed event before assuming that Cozmo can no longer see a face. |
|
Facial expression not recognized. |
|
Facial expression neutral |
|
Facial expression happy |
|
Facial expression surprised |
|
Facial expression angry |
|
Facial expression sad |
Functions
|
Erase the enrollment (name) records for all faces. |
|
Erase the enrollment (name) record for the face with this ID. |
|
Update the name enrolled for a given face. |
Classes
|
Triggered when a face enrollment is removed (via erase_enrolled_face_by_id) |
|
Triggered whenever a face is first visually identified by a robot. |
|
Triggered whenever a face that was previously being observed is no longer visible. |
|
Triggered whenever a face has its ID updated in engine. |
|
Triggered whenever a face is visually identified by the robot. |
|
Triggered whenever a face is renamed (via RobotRenamedEnrolledFace) |
|
A single face that Cozmo has detected. |