Giter Site home page Giter Site logo

openface_ros's Introduction

openface_ros

ROS wrapper for https://github.com/cmusatyalab/openface

Setup

In addition to openface_ros, clone the following repositories from https://github.com/tue-robotics: rgbd, tue_serialization, geolib2, code_profiler, ed_perception, ann2, tue_config, tue_filesystem, ed, ed_object_models, ed_sensor_integration, blackboard, cb_planner_msgs_srvs, and vocabulary_tree

Also clone usb_cam from https://github.com/bosch-ros-pkg/usb_cam.

Also create a symbolic link from where ever openface is installed to ~.

catkin build

You may have to build ed, then ed_perception before building the other packages (e.g., catkin build ed, catkin build ed_perception, etc.).

Also, if you have OpenCV or CUDA set up differently than usual set those as cmake arguments (e.g., catkin config -a --cmake-args -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-7.5 -DOpenCV_DIR=/home//local/share/OpenCV).

How to test

Terminal 1: 
    # start roscore & the usb camera node
    roscore &
    cd <location of workspace>
    source ./devel/setup.bash
    rosrun usb_cam usb_cam_node &

    # original use case: this will not load or save a library
    rosrun openface_ros openface_node.py &
    -or-
    # security use case: this will load a library if the file exists, otherwise it will create it; the library will be updated after learning
    rosrun openface_ros openface_node.py _face_dict_filename:=<my filname.pickle> &

    # echo messages from the openface node
    rostopic echo face_recognition_name

Terminal 2:
    cd <location of workspace>
    source ./devel/setup.bash

    # original use case: this is interactive
    rosrun openface_ros test_learn_detect.py image:=/usb_cam/image_raw _external_api_request:=true
-or-	
    # security use case: not interactive (always detects), does not use call the external api, and will not save out images (for speed)
    rosrun openface_ros test_learn_detect.py image:=/usb_cam/image_raw _external_api_request:=false _interactive:=false _save_images:=false
  • Learn (L openCV Waitkey)
  • Detect (D openCV Waitkey)
  • Clear (C openCV Waitkey) L, D, and C should be in the OpenCV window

openface_ros's People

Contributors

reinzor avatar svddries avatar schelian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.