From c2990cc51a99946e47bd2e0336b6fe6cc79cca64 Mon Sep 17 00:00:00 2001 From: jingwen121 Date: Mon, 7 Sep 2026 19:07:17 +0800 Subject: [PATCH] corrected angles --- .idea/misc.xml | 2 +- .../main/java/com/example/jnicpp/bowling/PosePhaseDetector.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7650728..991a888 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,7 @@ - + diff --git a/app/src/main/java/com/example/jnicpp/bowling/PosePhaseDetector.kt b/app/src/main/java/com/example/jnicpp/bowling/PosePhaseDetector.kt index aca1e38..0167067 100644 --- a/app/src/main/java/com/example/jnicpp/bowling/PosePhaseDetector.kt +++ b/app/src/main/java/com/example/jnicpp/bowling/PosePhaseDetector.kt @@ -77,12 +77,12 @@ enum class BowlingPhase { * alone rather than on an actual change of posture. */ class PosePhaseDetector( - private val torsoTiltMinDegrees: Float = 2f, + private val torsoTiltMinDegrees: Float = 1f, private val torsoTiltMaxDegrees: Float = 15f, private val kneeAngleMinDegrees: Float = 150f, private val kneeAngleMaxDegrees: Float = 180f, private val elbowAngleMinDegrees: Float = 70f, - private val elbowAngleMaxDegrees: Float = 110f, + private val elbowAngleMaxDegrees: Float = 125f, private val requiredConsecutiveFrames: Int = 8, private val requiredInvalidFramesToExit: Int = 5 ) {