-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbe2914
commit a3531bf
Showing
53 changed files
with
147 additions
and
106 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
...pp/src/androidTest/java/com/google/mediapipe/examples/holistic/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...istic/android/app/src/test/java/com/google/mediapipe/examples/holistic/ExampleUnitTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
/app/src/main/assets/tasks/holistic_landmarker.task | ||
*.task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# MediaPipe Tasks Holistic Landmark Detection Android Demo | ||
|
||
### Overview | ||
|
||
This is a camera app that continuously detects the body, hand, and face | ||
landmarks in the frames seen by your device's back camera, using a | ||
custom **task** file. | ||
|
||
The task file is downloaded by a Gradle script when you build and run the app. | ||
You don't need to do any additional steps to download task files into the | ||
project explicitly unless you wish to use your own landmark detection task. If | ||
you do use your own task file, place it into the app's assets/tasks directory. | ||
|
||
This application should be run on physical Android devices with a back camera. | ||
|
||
![Holistic Landmarker Demo](screenshot.jpg?raw=true "Holistic Landmarker Demo") | ||
|
||
## Build the demo using Android Studio | ||
|
||
### Prerequisites | ||
|
||
* The **[Android Studio](https://developer.android.com/studio/index.html)** IDE. | ||
This sample has been tested on Android Studio Giraffe. | ||
|
||
* A physical Android device with a minimum OS version of SDK 24 (Android 7.0 - | ||
Nougat) with developer mode enabled. The process of enabling developer mode | ||
may vary by device. | ||
|
||
### Building | ||
|
||
* Open Android Studio. From the Welcome screen, select Open an existing | ||
Android Studio project. | ||
|
||
* From the Open File or Project window that appears, navigate to and select | ||
the mediapipe/examples/holistic_landmarker/android directory. Click OK. You | ||
may | ||
be asked if you trust the project. Select Trust. | ||
|
||
* If it asks you to do a Gradle Sync, click OK. | ||
|
||
* With your Android device connected to your computer and developer mode | ||
enabled, click on the green Run arrow in Android Studio. | ||
|
||
### Models used | ||
|
||
Downloading, extraction, and placing the models into the *assets/tasks* folder | ||
is | ||
managed automatically by the **app/build.gradle.kts** file. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...amples/holisticlandmarker/MainActivity.kt → ...amples/holisticlandmarker/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mples/holisticlandmarker/MainViewModel.kt → ...mples/holisticlandmarker/MainViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...fragments/FaceBlendshapesResultAdapter.kt → ...fragments/FaceBlendshapesResultAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndmarker/fragments/PermissionsFragment.kt → ...ndmarker/fragments/PermissionsFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/app/src/main/res/color/bg_nav_item.xml → ...id/app/src/main/res/color/bg_nav_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.