UW-MAGIC-lab / hidden_village

https://practical-fermat-9e0301.netlify.app/
MIT License
1 stars 7 forks source link

Surface error message when player is too far close to the webcam #6

Open afogel opened 3 years ago

afogel commented 3 years ago

If a player's body is too close to the webcam, they won't be able to perform the required poses. We should warn them to move back in an easy to understand way.

likeketchup commented 3 years ago

looks good to me!

likeketchup commented 2 years ago

The approach I am considering is still the same: before/in/after drawing, check if some essential landmarks are empty. If, for example, abdomen landmarks do not exist, it means the abdomen is not in the camera frame, with the assumption that we do not store data from prev states.

Regarding the question about which landmarks do we check, I think it is best to check the boundaries of the human body: face, shins, and hands. If these three parts are not shown on camera, the rest of the body is not shown on camera.

If I have access to those landmarks in Story.js, it might be efficient to check there? I need to look into mediapipe/holistic for more information.

afogel commented 2 years ago

I like that general approach, @likeketchup