homuler/MediaPipeUnityPlugin: Unity plugin to run MediaPipe graphs
This is a Unity (2020.3.8f1) Plugin to use MediaPipe (0.8.3.1).
homuler/MediaPipeUnityPlugin: Unity plugin to run MediaPipe graphs
git clone https://github.com/homuler/MediaPipeUnityPlugin.git
cd MediaPipeUnityPlugin
sudo apt install ffmpeg
sudo apt install libopencv-core-dev libopencv-highgui-dev \
libopencv-calib3d-dev libopencv-features2d-dev \
libopencv-imgproc-dev libopencv-video-dev
edit WORKSPACE
new_local_repository(
name = "linux_opencv",
build_file = "@//third_party:opencv_linux.BUILD",
path = "/usr/local",
)
new_local_repository(
name = "linux_ffmpeg",
build_file = "@//third_party:ffmpeg_linux.BUILD",
path = "/usr/local",
)
Install .NET on Ubuntu - .NET | Microsoft Docs
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt install -y apt-transport-https
sudo apt update
sudo apt install -y dotnet-sdk-5.0
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
sudo apt install nuget
nuget update -self
sudo apt install openjdk-8-jdk
Installing Bazel using Bazelisk - Bazel
npm install -g @bazel/bazelisk
sudo apt install -y python3.9
python3.9 -m pip install numpy
Download Command line tools from Download Android Studio and SDK tools | Android Developers / Command line tools only
cd cmdline-tools
bin/sdkmanager --list --sdk_root=latest
sudo bin/sdkmanager "build-tools;29.0.2" --sdk_root=latest
sudo bin/sdkmanager "ndk;21.4.7075529" --sdk_root=latest
export ANDROID_HOME=/PATH-TO-CMDLINETOOLS/cmdline-tools/latest
export ANDROID_NDK_HOME=/PATH-TO-CMDLINETOOLS/cmdline-tools/latest/ndk/21.4.7075529
cd MediaPipeUnityPlugin
python3.9 build.py build --android arm64 -v