-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hand moves position in play area when my hand moves out of camera view #506
Comments
@emily-phet and I looked at this. Originally I thought it was because it then detected a single hand and controlled the "wrong one", but that doesn't seem to be the case, when the bug displays, it seems to always move back to the center, so I will need to double check on some calculation code in this case. |
When testing this morning with @emily-phet, I was very very easily able to reproduce the issue, but now it is much harder, though not impossible. I think that is potentially a bread crumb about the weird state we are getting into to set the value back to a "middle" point. |
Ok. My best guess from further investigation is that this has to do with how we are "smoothing" values for detection/interaction. When we lose the second hand going off screen, it looks like we actually have a single false positive detection where mediaPipe thinks that both hands are enabled. We have smoothing to determine if we are "interacting" together, but we don't have smoothing about false positives between 1 and 2 hands. Given the current state of the controller, and how it was originally built with only 2 hands in mind, having 1 hand interaction sprinkled in on top, I do not recommend fixing this bug, as I'm pretty sure it would ideally lead to an entire rewrite for the detection. Tagging @emily-phet, and noting that in my opinion it is still quite usable has far as bugs go. I'm going to mark this deferred. Please comment if you would like more work done here. Investigation Patch:
|
Test device
MacBook Air m1 chip
Operating System
macOS 12.5.1
Browser
Safari 15.6.1
Problem description
For phetsims/qa#831, with camera input: hands:
When I move my left hand too high or too low so that it is out of camera view, the left hand on the screen will jump to the same position as the right hand on the screen. This doesn't happen if I move my right hand too high/low--the hand will just stay at the top/bottom of the play area.
Visuals
yuck! I'm in a video!
handsoff.mp4
The text was updated successfully, but these errors were encountered: