The idea was simple: detect wrist keypoints and draw using body pose tracking. But what we thought would be a straightforward implementation turned into a frustrating cycle of debugging, testing, and still not getting the drawings to appear. Here’s a breakdown of everything we tried—and how we’re still stuck at the final step.
At first, I confirmed that the bodyPose model was working, and could see wrist keypoints being detected in the console. However, even with wrist movement, nothing was being drawn on the canvas.
Issue: Wrist detection was working, but no drawings appeared on the screen.
Thinking that small hand movements were being ignored, added a distance threshold to only draw when the wrist moved significantly.
Issue: The threshold was too high, preventing drawing altogether.
Wondered if the wrist detection was being filtered out because of a strict confidence requirement.
Issue: Wrist detection became more frequent, but still no visible drawing.