-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using MediaPipe v0.13.1 - ArFoundation with MediaPipe works in the Editor but not on Android #1118
Comments
See #870. |
I usually run UnityEditor on Linux.
Check the orientation of the camera. If the input image is not rotated, then you need to flip it vertically.
If the ARFoundation API takes long time, then please ask elsewhere. |
Thanks for the reply; I really appreciate it. I have now successfully integrated the hand tracking solution with AR Foundation. However, I had to revert to v0.12 because I still suck at programming, and v0.12 seems a bit easier to navigate. I acknowledge that I have a lot to learn, especially in understanding the techniques you use to write your code. I would like to know how I can create my own custom calculator, such as for edge detection or hand gestures in Mediapipe with Unity. Where should I get started? Additionally, if you have any materials that are helpful for learning how to write code like you do, I would greatly appreciate it. Thanks. |
First and foremost, I recommend reading the official MediaPipe documentation. If you wish to implement your own Calculator, you will need to write C++ code, so please refer to the MediaPipe documentation and code. However, I guess what you really want to do is to implement custom On the other hand, if you want to use a Task API which has not yet been ported to plugins, it is quicker to read the pull request (PR) where Task API was implemented (cf. #997).
For general advice on learning programming, I believe you can obtain more useful information by asking in other places. |
@ShonubiSamuel Hi! I see that you managed to implement hand tracking with AR Foundation. Can you share your project. It would really help me because I'm trying to solve the same problem. |
Plugin Version or Commit ID
v0.13.1
Unity Version
2022.3.4f1
Your Host OS
macOS Ventura 13.6.1
Target Platform
Android
Description
(Just in case, please note: This current issue is a bit different from the one I had in v0.12.0.) After struggling with v0.12.0, I switched to v0.13.1, which is a lot better because the Official Solution Project (from the Getting Started page) works 😅. Thanks for the new update.
So, I was able to modify the Official Solution Project to work with AR Foundation and tested it in the editor with my phone using "AR Foundation Remote 2," which works well without errors. However, when I tried out the build on my Android phone, it crashes my phone.
I tried running the Android logcat, I saw something like 👇 (Note: The full version is still far down below):
Code to Reproduce the issue
Additional Context
I ran a logcat using adb -s [device_id] logcat Unity:V native:V tflite:V CRASH:E AndroidRuntime:E "*:S"
so i copied out what i felt was the main log:
But here is the full log:
The text was updated successfully, but these errors were encountered: