VL.MediaPipe HandDetector only returns 2 hands

I’m using VL.MediaPipe to track the position of 8 hands.

The problem:
The HandDetector never returns more than 2 hands, whatever value I set for Max Number of Hands. The hands are clearly visible in the camera image (overlay enabled), but the output only contains 2 of them.

My settings:

  • Max Number of Hands: 6
  • Min Detection Confidence: 0.3
  • Min Presence Confidence: 0.8
  • Min Tracking Confidence: 0.5

Versions:

  • vvvv gamma: 7.4
  • VL.MediaPipe: VL.MediaPipe.0.11.0-alpha

Workaround:
I found a way around the bug: at startup, press RESET in MediaPipe.vl several times. After the reset, the detector returns all the hands. I have to do this at every startup, otherwise it falls back to 2 hands. It looks like the setting is only applied when the detector is created (or recreated), so the value is ignored on the initial launch.

Has anyone else run into this ? or is there another solution besides the reset?

Best

Mike

this is indeed a known issue with the underlying implementation i reported there. apparently the simple workaround that worked for me (as explained in the report) doesn’t work for you, which is plausible. it may behave differently on different machines/setups. we could try to increase the mentioned sleep…do you have a chance to build this yourself for a test?

also have a look at this alternative implementation of mediapipe.

Thanks a lot for the explanation and the links! Unfortunately I don’t have enough time to dig into the fix right now, and the reset works very well for me, so I’ll stick with it for this project. Good to know the cause is identified, and I’ll keep an eye on the rework.

coincidentally, the underlying implementation just released version 0.6.0 and while updating to it i increased the above mentioned sleep. would be interesting to hear if this changes the behavior for you. please see VL.MediaPipe 0.12.0-alpha.

This solution is worse. It no longer detects any landmarks with version 12. The reset works with version 11, but not with version 12 (with vvvv gamma 7.0).

It detects the hands correctly when I look at the Show Overlay, but the Hand Detector no longer detects any landmarks.

huh indeed. that was too quick. will have to give this update another spin.

@visionnocturne VL.MediaPipe 0.13.0-alpha is now out that fixes the handtracker issue of 0.12.0. does this fix the multihand issue for you?

Thank you , it’s works(10hands maximum)