Code Monkey home page Code Monkey logo

mediapipe_ros's Introduction

mediapipe_ros

ROS package for Mediapipe in Linux Env that the python3 is not the default version

Environment

  • Ubuntu 18.04 + Melodic
  • Ubuntu 20.04 + Noetic

Setup

Workspace build (melodic)

sudo apt-get install python3.7 python3.7-dev python3.7-venv
source /opt/ros/melodic/setup.bash
mkdir -p ~/mediapipe_ws/src
cd ~/mediapipe_ws/src
git clone https://github.com/tongtybj/mediapipe_ros.git
wstool init
wstool merge mediapipe_ros/fc.rosinstall.melodic
wstool update
rosdep install --from-paths . --ignore-src -y -r
cd ~/mediapipe_ws
catkin init
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so
catkin build

Workspace build (Noetic)

source /opt/ros/noetic/setup.bash
mkdir -p ~/mediapipe_ws/src
cd ~/mediapipe_ws/src
git clone https://github.com/tongtybj/mediapipe_ros.git
wstool init
rosdep install --from-paths . --ignore-src -y -r
cd ~/mediapipe_ws
catkin init
catkin build

Usage

In the first terminal:

$ roslaunch usb_cam usb_cam-test.launch

In the second terminal:

$ source ~/mediapipe_ws/devel/setup.bash
$ rosrun mediapipe_ros hand_gesture_ros.py

In the thid terminal:

$ rqt_image_view 

choose /cv_hand_sense

mediapipe_ros's People

Contributors

tongtybj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.