google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.46k stars 5.15k forks source link

Cannot extract more than 2 hand landmark sets #726

Closed cm-yamamoto-hiroki closed 4 years ago

cm-yamamoto-hiroki commented 4 years ago

Hello, how can I detect the landmark sets for more than 2 hands using Multi Hand Tracking? I could receive only 2 landmark sets.

cm-yamamoto-hiroki commented 4 years ago

The result was like this image. You can see the landmarks on the second and third hands (not on the first and 4th ones). iLoop=10_outputFrame

cm-yamamoto-hiroki commented 4 years ago

I've resolved this issue. I changed the InputStreamHandler of TfLiteInferenceCalculator from FixedSizeInputStreamHandler to DefaultInputStreamHandler.

In mediapipe\mediapipe\calculators\tflite\tflite_inference_calculator.cc 318:

  // Assign this calculator's default InputStreamHandler.
-  cc->SetInputStreamHandler("FixedSizeInputStreamHandler");
+  cc->SetInputStreamHandler("DefaultInputStreamHandler");
eknight7 commented 4 years ago

Marking resolved, thanks for the update!