Skip to content

This ROS package predicts the object of a human's attention using a single monocular camera.

Notifications You must be signed in to change notification settings

Pearl-UTexas/gaze_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gaze Tracker

⚠️This package has not been tested with OpenCV 3.0+, we recommended using OpenCV 2.4 or similar⚠️

This ROS package predicts the object of a human's attention using a single monocular camera. This package was tested on Ubuntu 16.04 and ROS Kinetic.

Setup

Rail Object Detector

  • Follow installation instructions for Darknet on Rail Object Detector
  • Compile for CUDA support if you have a NVIDIA GPU for 10x speed improvement in object detection and gaze prediction. Recommended: CUDA 8.0, CUDNN 5.1
  • Configure launch/gaze_predict.launch file with locations of configuration data for Darknet

Face Recognition

We use a dlib based face detector in this package.

Install by running: pip install face_recognition

UI Dependencies

We provide a simple web interface to display the camera feed and gaze prediction locations. Run the following commands to setup the interface

JS

Run npm install in the ui folder

ROS

Install the rosbridge-server and web-video-server packages

sudo apt-get install ros-<rosdistro>-rosbridge-server
sudo apt-get install ros-<rosdistro>-web-video-server

Matlab & Caffe

  • We recommend to install Matlab R2016b due to issues with OpenCV for other versions. Install the Computer Vision System Toolbox and Robotics System Toolbox.
  • Install Caffe with CUDA support for a 10x speedup. Recommended: CUDA 8.0, CUDNN 5.1
  • Use gcc-4.9 for compiling matcaffe. Folow instructions here.
  • Type roboticsAddons into the Matlab console, and install the ROS Custom Messages interface.
  • Type rosgenmsg <path-to-workspace-src>, follow the instructions and restart Matlab
  • Install the toolbox for random forests
  • Download the model trained by Recasens et al., unzip it and place all files in the matlab folder.
  • Change the path to your caffe, ros workspace and toolbox folders in matlab/ros_demo.m

Running the system

  • Edit gaze_predict.launch to have the correct image topic name for your system
  • Run gaze_predict.launch
  • Run ros_demo.m in Matlab

Bibliography

If you find our work to be useful in your research, please cite:

@inproceedings{saran2018human,
  title={Human gaze following for human-robot interaction},
  author={Saran, Akanksha and Majumdar, Srinjoy and Short, Elaine Schaertl and Thomaz, Andrea and Niekum, Scott},
  booktitle={2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
  pages={8615--8621},
  year={2018},
  organization={IEEE}
}

About

This ROS package predicts the object of a human's attention using a single monocular camera.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages