I’m attempting to reproduce the TensorFlow Hand Pose Detection demo in Observable, but am having problems (RequireError: invalid module) in attempting to properly load the hand-pose-detection module with dependencies.
Using a notebook (PoseDetection-TFJS / Na Li | Observable) that successfully implements the pose detection model as a pattern, my notebook below illustrates the require issues I am having:
Looked a bit closer at the documentation and started configuring the dependencies via ‘Mediapipe’ and require dependencies are now working with an instantiation of the handPoseDetection module.
Caution: The following is a known issue with mediapipe. The workaround is functional but very low performance: