8000 GitHub - TeamSOBITS/ulfg_face_detector
[go: up one dir, main page]

Skip to content

TeamSOBITS/ulfg_face_detector

 
 

Repository files navigation

JP | EN | FORK

Contributors Forks Stargazers Issues License

ulfg_face_detector

目次
  1. 概要
  2. セットアップ
  3. 実行方法
  4. 参考文献

概要

CPUでもサクサク動く顔検出パッケージです.

(上に戻る)

セットアップ

本レポジトリのセットアップ方法について説明します.

環境条件

System Version
Ubuntu 20.04 (Focal Fossa)
ROS Noetic Ninjemys
Python 3.0~

インストール方法

  1. ROSのsrcフォルダに移動します.
    $ cd ~/catkin_ws/src/
  2. 本レポジトリをcloneします.
    $ git clone https://github.com/TeamSOBITS/ulfg_face_detector.git
  3. レポジトリの中へ移動します.
    $ cd ulfg_face_detector
  4. 依存パッケージをインストールします.
    $ bash install.sh
  5. パッケージをコンパイルします.
    $ cd ~/catkin_ws/
    $ catkin_make

(上に戻る)

実行方法

実行方法は,tfを使用しないNormal Modeとtfを使用するTF Modeの2種類あります. Normal ModeはPCのカメラでも使用することが出来ます.TF Modeは点群の取れるカメラ(例:Azure kinect)を接続して使用してください.

Normal Mode(tfを使用しない場合)

  1. カメラを起動する.

  2. face_detect.launchをたてる.

    $ roslaunch ulfg_face_detector face_detect.launch

    これで顔検出ができるようになります.これでエラーが発生する場合はface_detect.launchの13行目

    <param name="ulfg_image_topic_name" type="str" value="/camera/rgb/image_raw"/> 

    このvalueを変更してもう一度試しましょう.\

  3. 検出した顔を識別したいとき face_detect.launchの11行目

    <param name="unique_class_flag" type="bool" value="false"/> 

    このvalueを"true"にすると検出した顔をナンバリングします.

TF Mode(tfを使用する場合)

ここではRGB-Dカメラが必要になります.

  1. RGB-Dカメラを起動する.
  2. face_detect_with_tf.launchをたてる.
    $ roslaunch ulfg_face_detector face_detect_with_tf.launch
    違うカメラを使用する場合はface_detect_with_tf.launchの5,35,37行目
    $ <arg name="img_topic_name"           default="/camera/rgb/image_raw"/>
    
    $ <arg name="base_frame_name" value="camera_depth_frame"/> 
    
    $ <arg name="cloud_topic_name" value="/camera/depth_registered/points"/>
    このdefaltとvalueを適切なものに変更しましょう.

(上に戻る)

参考文献

(上に戻る)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Shell 1.5%
  • CMake 0.6%
0