From 5b50add1ec77d6c5fe1677c9e10e8ae04c4ffa8e Mon Sep 17 00:00:00 2001 From: HaroldoTeruya Date: Thu, 1 Apr 2021 16:20:58 -0300 Subject: [PATCH] docs: fix head movement definition --- README.md | 4 ++-- .../cyberlabs/yoonit/camerademo/MainActivity.kt | 16 ++++++++-------- app/src/main/res/layout/activity_main.xml | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 57293db..2cdadb1 100644 --- a/README.md +++ b/README.md @@ -219,8 +219,8 @@ Here we explaining the above gif and how reached the "results". Each "movement" | Head Direction | Attribute | _v_ < -36° | -36° < _v_ < -12° | -12° < _v_ < 12° | 12° < _v_ < 36° | 36° < _v_ | | - | - | - | - | - | - | - | | Vertical | `headEulerAngleX` | Super Down | Down | Frontal | Up | Super Up | -| Horizontal | `headEulerAngleY` | Super Right | Right | Frontal | Left | Super Left | -| Tilt | `headEulerAngleZ` | Super Left | Left | Frontal | Right | Super Right | +| Horizontal | `headEulerAngleY` | Super Left | Left | Frontal | Right | Super Right | +| Tilt | `headEulerAngleZ` | Super Right | Right | Frontal | Left | Super Left | ### KeyError diff --git a/app/src/main/java/ai/cyberlabs/yoonit/camerademo/MainActivity.kt b/app/src/main/java/ai/cyberlabs/yoonit/camerademo/MainActivity.kt index da34dd0..8b98af6 100644 --- a/app/src/main/java/ai/cyberlabs/yoonit/camerademo/MainActivity.kt +++ b/app/src/main/java/ai/cyberlabs/yoonit/camerademo/MainActivity.kt @@ -400,20 +400,20 @@ class MainActivity : AppCompatActivity() { headHorizontalAngleTextView.text = headEulerAngleY.toString() headHorizontalTextView.text = - if (headEulerAngleY < -36) "Super Right" - else if (-36 < headEulerAngleY && headEulerAngleY < -12) "Right" + if (headEulerAngleY < -36) "Super Left" + else if (-36 < headEulerAngleY && headEulerAngleY < -12) "Left" else if (-12 < headEulerAngleY && headEulerAngleY < 12) "Frontal" - else if (12 < headEulerAngleY && headEulerAngleY < 36) "Left" - else if (36 < headEulerAngleY) "Super Left" + else if (12 < headEulerAngleY && headEulerAngleY < 36) "Right" + else if (36 < headEulerAngleY) "Super Right" else "-" headTiltAngleTextView.text = headEulerAngleZ.toString() headTiltTextView.text = - if (headEulerAngleZ < -36) "Super Left" - else if (-36 < headEulerAngleZ && headEulerAngleZ < -12) "Left" + if (headEulerAngleZ < -36) "Super Right" + else if (-36 < headEulerAngleZ && headEulerAngleZ < -12) "Right" else if (-12 < headEulerAngleZ && headEulerAngleZ < 12) "Frontal" - else if (12 < headEulerAngleZ && headEulerAngleZ < 36) "Right" - else if (36 < headEulerAngleZ) "Super Right" + else if (12 < headEulerAngleZ && headEulerAngleZ < 36) "Left" + else if (36 < headEulerAngleZ) "Super Left" else "-" } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index ee1e31b..9f7c786 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -349,7 +349,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="10px" - android:text="Left Eye Open:" /> + android:text="Left Eye:" /> + android:text="Right Eye:" />