Skip to content

ecdeng/openface_ros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFace for ROS

Branched version of OpenFace for ROS from @interaction-lab on 12/17/16. Use this for projected face build.

This is a small ROS node that exposes OpenFace over ROS. In particular, given a image of a face, it will output:

  • Eye Gaze Vectors
  • Head Pose
  • 2D Landmarks
  • 3D Landmarks
  • Action Units
  • Debug Visualization (optional)

This repository expects Interaction Lab's fork of OpenFace and OpenCV 3 to be installed.

Dependencies of OpenFace include:

  • dlib
  • Boost Filesystem
  • tbb
  • OpenCV 3

ROS Parameters

Required

  • ~image_topic - The topic the image is provided on (e.g. /usb_cam/image_raw).

Optional

  • ~clnf_model_path - Provide an alternate CLNF model to OpenFace.
  • ~tri_model_path - Provide an alternate tri model to OpenFace.
  • ~au_model_path - Provide an alternate AU model to OpenFace.
  • ~haar_model_path - Provide an alternate HAAR model to OpenFace.
  • ~publish_viz - Set to true to publish a debug visualization (default: false).

Installation

Dependencies

  • OpenCV 3 (If installing from source, make sure to run cmake as follows: cmake -DBUILD_SHARED_LIBS=ON ..⁠⁠⁠⁠
  • dlib (You should be able to install from apt-get, if not, clone and install from source)

Running

  • roscore
  • rosrun usb_cam usb_cam_node
  • rosrun openface_ros openface_ros _image_topic:="/usb_cam/image_raw"

Notes

This node requires cv_bridge and OpenCV 3. You must ensure that cv_bridge is also linked against OpenCV 3. If you get a warning during compilation, you may have to manually clone the vision_opencv repository and re-build cv_bridge.

Messages

FaceFeatures

std_msgs/Header header

geometry_msgs/Vector3 left_gaze
geometry_msgs/Vector3 right_gaze

geometry_msgs/Pose head_pose

geometry_msgs/Point[] landmarks_3d
geometry_msgs/Point[] landmarks_2d

openface_ros/ActionUnit[] action_units

ActionUnit

string name
float64 presence
float64 intensity

About

ROS bindings for OpenFace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.4%
  • CMake 10.6%