Skip to content
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

extract Hair segementation mask from mediapipe #1762

Closed
shivSD opened this issue Mar 17, 2021 · 6 comments
Closed

extract Hair segementation mask from mediapipe #1762

shivSD opened this issue Mar 17, 2021 · 6 comments
Assignees
Labels
legacy:hair segmentation Hair Segmentation related issues type:support General questions

Comments

@shivSD
Copy link

shivSD commented Mar 17, 2021

Was able to get the mediapipe & Hair segmentation binary working. Now i need extract mask of the hair segmentation. Need some input on how to extract the mask data from mediapipe.

@sgowroji
Copy link
Collaborator

Hi @shivSD Could you please elaborate the issue with your references to understand it much better. Thanks.

@sgowroji sgowroji self-assigned this Mar 18, 2021
@sgowroji sgowroji added legacy:hair segmentation Hair Segmentation related issues stat:awaiting response Waiting for user response type:support General questions labels Mar 18, 2021
@sgowroji
Copy link
Collaborator

Hi @shivSD , Can you address above comment.

@shivSD
Copy link
Author

shivSD commented Mar 24, 2021

Basically i want to tap the predicted output from hair segmentation inference network. Please can you give me some clues which files i need to look for. something like this link but i need to extract the hair mask.

@sgowroji sgowroji assigned kartynnik and unassigned sgowroji Mar 24, 2021
@sgowroji sgowroji added stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels Mar 24, 2021
@kartynnik
Copy link
Collaborator

In the corresponding graph, the MASK:hair_mask output stream of TfLiteTensorsToSegmentationCalculator is the OpenCV Mat containing the segmentation mask.

@kartynnik kartynnik removed the stat:awaiting googler Waiting for Google Engineer's Response label Mar 24, 2021
@sgowroji sgowroji added the stat:awaiting response Waiting for user response label Mar 25, 2021
@sgowroji
Copy link
Collaborator

Hi @shivSD Above comment resolved your query. So closing this issue . Thanks!

@dheeraj221b
Copy link

dheeraj221b commented Feb 11, 2022

Hi @sgowroji , I am stuck with same problem, following way I am trying to get the mask data. but it is crashing while doing so.
processor.addPacketCallback("hair_mask", PacketCallback {
PacketGetter.getProtoBytes(it)
})

Can you please help I can get the hair segmentation related data? My need is to validate hair part on the body for which I need some data related to hair?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:hair segmentation Hair Segmentation related issues type:support General questions
Projects
None yet
Development

No branches or pull requests

4 participants