sudo apt update
pip install numpy
pip3 install opencv-python
pip3 install opencv-contrib-python
pip install mediapipe
pip3 install dlib
If there is an error indicating that the module cannot be found in Python, you can use this command to install the corresponding third-party module
xxxxxxxxxx
pip3 install third-party module
If the package for ROS2 cannot be found, you can use this command to install the corresponding package
xxxxxxxxxx
sudo apt install ros-humble-Package
Kind reminder: If you don't understand how to operate, copying Google incorrectly will solve the problem.
xxxxxxxxxx
uzip yahboom_esp32_mediapipe.zip
cd ../yahboomcar_ws #Enter this folder
colcon build
Once the compilation is successful, the mediatipe feature package is successfully loaded into the ROS2 environment, as shown in the figure
xxxxxxxxxx
mkdir -p ~/yahboomcar_ws/src
echo "source ~/yahboomcar_ws/install/setup.bash " >> ~/.bashrc
source ~/.bashrc
Then go back to the first step of operation
The yahboom_esp32_camera in the picture is built in the 2. ROS2 View Camera tutorial, and this feature pack and the mediape feature pack do not affect each other.