10/31/2023 0 Comments Android studio setup![]() ![]() For details, see the Google Developers Site Policies. Install it on a device with: adb install bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu.apkĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. bazel build -c opt -config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu For instance, for MediaPipe Hands the targetįile: Note: To reduce the binary size, consider appending -linkopt="-s" to theĬommand below to strip symbols. To build an Android example app, build against the correspondingĪndroid_binary build target. To build (and install) all MediaPipe Android example apps. $YOUR_INTENDED_API_LEVEL in android_ndk_repository() and/or You can achieve this by specifying api_level = In order to use Framework on earlier Android versions, MediaPipe needs to switch $ echo "android_ndk_repository(name = \"androidndk\", api_level=21)" > WORKSPACE The following: $ echo "android_sdk_repository(name = \"androidsdk\")" > WORKSPACE export ANDROID_HOME=Īnd add android_ndk_repository() and android_sdk_repository() rules into the $ANDROID_HOME and $ANDROID_NDK_HOME to point to the installed SDK and NDK. If Android SDK and NDK are already installed (e.g., by Android Studio), set To download and setup Android SDK and NDK before building any Android example However, if you prefer using MediaPipe without ![]() MediaPipe recommends setting up Android SDK and NDK via Android Studio (and seeīelow for Android Studio setup). Setup Android NDK version between 18 and 21.Setup Android SDK release 30.0.0 and above.Install MediaPipe Framework following these instructions.Building Android example apps with Bazel Prerequisite To learn more about these example apps, start from Hello World! onĪndroid. Please follow instructions below to build Android example apps with MediaPipe Framework. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |