Giter VIP home page Giter VIP logo

face_recognition_ros's Introduction

face_recognition_ros

ROS2 package for using face_recognition.

Requirements

  • ROS 2 (Tested on Humble, would work on any distributions with Python 3.3+ required by face_recognition)

Other dependencies are listed in package.xml and requirements.txt.

Usage

Setup

$ cd ~/ros2_ws/src
$ git clone https://github.com/mitukou1109/face_recognition_ros.git
$ cd face_recognition_ros
$ rosdep install -iyr --from-paths .
$ pip install -r requirements.txt
$ cd ~/ros2_ws
$ colcon build --symlink-install
$ source install/local_setup.bash

Face identification

Prepare an image containing a face to identify. Assuming you have your selfie in home directory:

$ cd ~/ros2_ws/src/face_recognition_ros
$ python register_known_face.py ~/your_name.jpg "Your name"   # You can specify the name to register, otherwise the file's name will be used
Registered Your name

You can test with the following commands if you have a webcam connected to your PC:

$ sudo apt install ros-humble-v4l2-camera
$ ros2 launch face_recogntion_ros demo.launch.py
...
[INFO] [1703600037.356322923] [face_identifier]: Registered known faces: ['Your name']
...

Demo screenshot

Face detection

TODO

Topics

face_identifier

Subscribed topics:

Name Type Description
/image_raw sensor_msgs/Image Input image

Published topics:

Name Type Description
~/detections vision_msgs/Detection2DArray Sequence of bounding box and name for each detected faces
~/result_image sensor_msgs/Image Input image with bounding boxes and names drawn

Parameters

face_identifier

Name Type Default value Description
resize_height int 320 Height to resize input image before encoding for making it faster

face_recognition_ros's People

Contributors

mitukou1109 avatar

Watchers

 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.