mediapipe
mediapipe copied to clipboard
Use two MediaPipe solutions at the same time.
I have used the AAR of selfie-segmentation in my project and it is working fine. All contents of the package com.google.mediapipe are included in the AAR. like this:
At the same time, I want to use facemesh with solution api way. In build.gradle, I added
implementation("com.google.mediapipe:solution-core:0.8.10.1-alpha-1")
implementation("com.google.mediapipe:facemesh:0.8.10.1-alpha-1")
When I run the project, it reports an error like this:

Because the solution-core dependencies also contain these:

How can I use selfie-segmentation and facemesh at the same time. please help me. thanks
Hi @GreenVegetables , Could you provide steps to reproduce this issue.
Hello @GreenVegetables I've faced your issue before. The only solution I found - combine multiple solutions in one graph. For example you first perform selfie segmentation and after that run face detection.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
Hi @GreenVegetables , Yes , you will have use 2 different solutions in two different times.
Closing as stale. Please reopen if you'd like to work on this further.