Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TesseraktZero committed Sep 29, 2020
1 parent 904a925 commit 61e8b83
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@ It works by first detecting the hand landmarks by Mediapipe in Android, and then
1. Enable Android Developer Mode and USB debugging in the mobile device. Connect the device with PC and allow permissions.

2. Install the "UnityHandTracking.apk" to the device:
`adb install UnityHandTracking.apk`
The .apk is included in release. The source code of the apk is available in [mediapipe_multi_hands_tracking_aar_unity](https://github.com/TesseraktZero/mediapipe_multi_hands_tracking_aar_unity).
drag and drop the apk into device and click the apk in the device's FileManager
, or by command: `adb install UnityHandTracking.apk`.
A built version of apk is included in release. The source code of the apk is available in [mediapipe_multi_hands_tracking_aar_unity](https://github.com/TesseraktZero/mediapipe_multi_hands_tracking_aar_unity).

3. Open the SampleScene in Unity project. In the scene, navigate to `unitychan`>`HandLandmarkAndRigs`>`HandLandmarkSet`. Update the `Adb Path` according to point to local adb which installed along with Unity Android Build Support. The path should have patterns similar to one of the belows:

- `C:\Unity\2019.4.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe`

- `C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe`

4. Start and run the SampleScene in Unity project. This should automatically start the Android app and receive data from it.
4. Start the SampleScene in Unity project. This should automatically start the Android app and receive data from it.

5. Hold the device vertically and capture both hands for best tracking.

Expand All @@ -33,12 +40,6 @@ To apply hand tracking on your own avatar, follow the below steps:
- For each of the Hand Rigs, align their transform with the `Tip` transform. To do so, select that object and hold control select object assign in `Tip`. Then, navigate to menu: `Animation Rigging` -> `Align Transform`

2. Adjust the position and rotation of the prefab `HandLandmarkSet` to fit with the model.

3. Update the `Adb Path` in `LandmarkSocketManager` of `HandLandmarkSet`. The path should have patterns similar to one of the belows:

- `C:\Unity\2019.4.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe`

- `C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe`

## License

Expand Down

0 comments on commit 61e8b83

Please sign in to comment.