Commit Graph
69 Commits
Author SHA1 Message Date
midnight-masala 7518594440 Merge remote-tracking branch 'origin/au-au' into au-au
# Conflicts:
#	app/src/main/java/com/example/jnicpp/bowling/BowlingCameraActivity.kt
#	app/src/main/res/layout-land/activity_bowling_camera.xml
#	app/src/main/res/layout/activity_bowling_camera.xml
2026-09-07 21:26:18 +08:00
midnight-masalaandClaude Sonnet 5 e7a9c2b140 Add live per-step form feedback based on joint angles
Extends pose angle tracking with knee bend (hip-knee-ankle), then uses
it alongside the existing elbow/shoulder angles in a new
PoseStageAdvisor to give a short live cue for whichever step of the
approach is in progress: push-away on step 2, downswing on step 3,
backswing on step 4, and knee-bend/arm-extension on the final step.
Thresholds are starting defaults, not measured coaching data, and are
expected to be retuned against real approach footage.

Also fixes a layout bug found while testing this live: the new
feedback text was chained via ConstraintLayout's toBottomOf to the
step banner above it, so whenever that banner was hidden (GONE) the
feedback text rendered at its collapsed zero-height position instead
of staying put, landing on top of the recording indicator. Both now
sit in a plain vertical LinearLayout, which collapses GONE children
correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 21:22:11 +08:00
midnight-masala 7af128d575 steps
identify the steps
2026-09-07 21:03:41 +08:00
midnight-masalaandClaude Sonnet 5 2bb7c6ca7b Add live final-position feedback and fix step detection accuracy
Shows a live banner as each step of the approach is counted, ending in
"FINAL POSITION - RELEASE!" once the 5th footfall lands. Also fixes
LiveStepDetector's peak-prominence check, which compared a candidate
footfall only to its immediate neighboring frame and silently dropped
real steps that landed across several closely-spaced frames; it now
tracks the true rise/fall trough on each side instead. Switches
PoseAnalyzer to ML Kit's faster base pose model (the accurate model was
starving the peak detector of frames on unaccelerated hardware), and
makes LiveStepDetector's stillness-based reset toggleable, currently
off for easier testing against recorded reference clips.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 20:58:03 +08:00
harine e7cb217de8 Added tuning feature and hand palm action to reset the timer 2026-09-07 19:38:43 +08:00
jingwen121 c2990cc51a corrected angles 2026-09-07 19:07:17 +08:00
qychan 39e6291e9d comments pt1 2026-09-07 19:06:10 +08:00
harine 41b567929a fixed issue with step counter 2026-09-07 17:37:11 +08:00
harine 5fe424316e added working step counter 2026-09-07 16:10:45 +08:00
qychan de45eab0f5 feedbackui
can show in recording
2026-09-06 22:31:36 +08:00
jingwen121 b28cc4d508 edited the values 2026-09-05 23:38:23 +08:00
jingwen121 cb941006c5 starting pose detection 2026-09-05 22:33:13 +08:00
harine cfdd965cf9 Added new changes for my own device 2026-08-18 23:36:06 +08:00
harine afb9d800ff Update .gitignore 2026-08-18 22:26:07 +08:00
DefiantWanderer 905400a59a Step counter test1 2026-08-14 18:16:55 +08:00
DefiantWanderer 5d07c8c8bd Smoother skeleton 2026-08-13 19:54:48 +08:00
DefiantWanderer e05aca3312 Angle update 2026-08-12 12:46:33 +08:00
DefiantWanderer 18fe809d4a Debugging linkage stuff 2026-08-11 19:58:07 +08:00
DefiantWanderer 8d4535ff00 Initial commit 2026-08-11 19:46:54 +08:00