This is an example of using MediaPipe AAR in Android Studio with Gradle.
If you want running this code, please connect your phone and then run this code.
The build process is being written down.
- Android Studio 4.1.1
Mediapipe Pose Tracking AAR (android) Example
License: Apache License 2.0
This is an example of using MediaPipe AAR in Android Studio with Gradle.
If you want running this code, please connect your phone and then run this code.
The build process is being written down.
Hi LeeJeongHwi,
I build mp_pose_tracking.aar following https://google.github.io/mediapipe/getting_started/android_archive_library.html,when i replace mp_pose_tracking.aar in your example and run in mobile, it crashed. The log is as follow,
and my build script is
load("//mediapipe/java/com/google/mediapipe:mediapipe_aar.bzl", "mediapipe_aar")
mediapipe_aar(
name = "mediapipe_pose_tracking",
calculators = ["//mediapipe/graphs/pose_tracking:pose_tracking_gpu_deps", "//mediapipe/gpu:image_frame_to_gpu_buffer_calculator"],
)
can you show me your build script for mp_pose_tracking.aar?
Thanks in advance.
I can build the application. When running, the app crashes with error couldn't find "libopencv_java3.so". What could be the issue?
FATAL EXCEPTION: main
Process: com.example.posetest, PID: 3799
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.posetest-mXAw8DBQVYrkzGKI_Loc7A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.posetest-mXAw8DBQVYrkzGKI_Loc7A==/lib/arm, /data/app/com.example.posetest-mXAw8DBQVYrkzGKI_Loc7A==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]] couldn't find "libopencv_java3.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1667)
at com.example.myapplication.MainActivity.<clinit>(MainActivity.java:88)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1250)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3252)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3489)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2073)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:225)
at android.app.ActivityThread.main(ActivityThread.java:7563)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994)
Hi, I want to ask where I can access the pose landmarks and how can I manipulate stick figure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.