Open taeyeonlee opened 1 year ago
Hi @taeyeonlee, We see that mediapipe does not have any such example officially published or available. Source mentioned here https://github.com/illisoft/HandtrackingForUnity/tree/develop belongs to the community repo and we recommend you to follow up and raise the issue with the mentioned repo. However, If you have any issue related to feature request, bugs, build/install or support. We are always take that here and help out with possible solution. Thank you!
Hi @kuaashish The repo is read-only, I can't raise the issue on the community repo. The community repo says that Unity App can use the mediapipe AAR using wrapper AAR. I think it is a good approach. I hope Google Mediapipe to support the approach officially.
@taeyeonlee, Thank you for understanding the concern, However, we have already this request #1369 running internally and will let you know if there will be any specific update on the request. Although, request you to follow up with above issue and please feel free to close this ticket. Thank you!
@kuaashish The request (#1369) is also what I want. But, in this issue (#4161), I want a quick support from an Expert like you to fix the error, when using AAR and Wrapper AAR in Unity Android.
Failed resolution of: Lcom/google/common/flogger/FluentLogger;
at com.google.mediapipe.framework.Graph.<clinit>(Graph.java:33)
@taeyeonlee,
From the error log shared, Seems the issue is related to dependencies in the build/gradle
file as similar error has been reported here, we would like to inspect the above file once. Further, flogger team can help more on the issue we suggest that raise a issue here. However, Unity is officially not supported by MediaPipe yet. This we are marking as feature request and sharing internally with team. Thank you!
@taeyeonlee for easier implementation of Mediapipe hand tracking on Android using Unity I suggest you use MediaPipe Unity Plugin. There are good examples to achieve the task.
@fadiaburaid Yes, the MediaPipeUnityPlugin is a good example for Unity. but Each Unity App must include the Mediapipe Solutions. It's duplicated. and the performance is lower than AAR. If Mediapipe Android AAR wrapper is possible, then mediapipe solution can run on background process. and All Unity Apps don't need to include the Mediapipe Solution and use it.
@taeyeonlee I am not fully versed in AAR. I just included the Mediapipe Unity Package in Packages folder and the models used in the streaming assets folder. Then I edited the Calculators Graph according to the solution I wanted to include. I managed to animate a full avatar on Android using Holistic solution and it is running fine on a non high-end phone.
@fadiaburaid Great, the performance of MediaPipeUnityPlugin is not bad. but it's lower than AAR.
@fadiaburaid This effect is great, can you share the project code to the github platform? I have recently also used the holistic function of the mediapipeunityplugin to drive the limbs and fingers of the avatar, but there has been no progress. I hope to learn this part of your code. Thank you so much! !
@taeyeonlee I am not fully versed in AAR. I just included the Mediapipe Unity Package in Packages folder and the models used in the streaming assets folder. Then I edited the Calculators Graph according to the solution I wanted to include. I managed to animate a full avatar on Android using Holistic solution and it is running fine on a non high-end phone.
avatar.mp4
OS Platform and Distribution
Ubuntu 18.04.6 LTS (Handtracking Android AAR build), Windows (Wrapper AAR, Unity)
Compiler version
gcc 11.1.0
Programming Language and version
Mediapipe (C++, Python 3.6, Java), Unity (C#)
Installed using virtualenv? pip? Conda?(if python)
Python 3.6,
MediaPipe version
0.8.9
Bazel version
5.0
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
NDK 21.0.6113669, Android SDK Platform 11
Android AAR (if android)
Yes
OpenCV version (if running on desktop)
No response
Describe the problem
Complete Logs