Skip to content

adamjacobs2/ROSFaceDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Detection ROS Package

Author

Adam Jacobs

System Information

  • OS: Ubuntu 22.04
  • ROS Version: ROS 2 Humble

Description

This ROS2 package implements OpenCV to detect faces in camera images. It consists of the following ROS nodes:

  • usb_camera_node: Receives image data from a USB camera and publishes it for processing.
  • face_detect_node: Subscribes to the image data, determines the location of faces, and publishes new image data with a bounding box around each detected face.
  • rqt_image_view: Displays the image data with bounding boxes drawn over each detected face.

Installation

Prerequisites

  • Ubuntu 22.04
  • ROS 2 Humble
  • Colcon
  • Python
  • OpenCV

Clone the Repository

git clone https://github.com/adamjacobs2/FaceDetectionROS.git

Change Path

In face_detect/face_detect_node.py, change the workspace to the absolute path of your colcon workspace

workspace = '/home/username/rest_of_path_here/ros2_ws'

Build the Package and Source the Workspace

cd ros_workspace_path
colcon build --symlink-install
source install 

Launch the Package

ros2 launch face_detect launch.py

Output

Face Detection

About

ROS Package Used to detect faces in real time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages