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

How to fill face rectangle (in face mesh) with transparent color? #2019

Closed
midhulavijayan opened this issue May 12, 2021 · 6 comments
Closed
Assignees
Labels
legacy:face mesh Issues related to Face Mesh type:support General questions

Comments

@midhulavijayan
Copy link

Hello, I'm trying to fill the face rectangle with some transparency. I made the "filled" option as true to fill the color. Is there any way to give some transparency for the filled color (alpha blending)?
node {
calculator: "RectToRenderDataCalculator"
input_stream: "NORM_RECTS:rects"
output_stream: "RENDER_DATA:rects_render_data"
node_options: {
[type.googleapis.com/mediapipe.RectToRenderDataCalculatorOptions] {
filled: true
color { r: 255 g: 0 b: 0 }
thickness: 4.0
}
}
}

@rmothukuru rmothukuru self-assigned this May 13, 2021
@rmothukuru rmothukuru added legacy:face mesh Issues related to Face Mesh stat:awaiting googler Waiting for Google Engineer's Response type:support General questions labels May 13, 2021
@rmothukuru rmothukuru assigned gkarpiak and unassigned rmothukuru May 13, 2021
@sgowroji
Copy link

Hi @midhulavijayan, For your understanding #1743 (comment).

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels May 26, 2021
@sgowroji
Copy link

sgowroji commented Jun 1, 2021

Hi @midhulavijayan, Did you get a chance to go through the above #2019 (comment). Thanks

@midhulavijayan
Copy link
Author

Hi @sgowroji, i have gone through it. i couldn't find any solution from the mentioned comment. Could you please elaborate the steps to fill transparent color?.

@sgowroji sgowroji added stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels Jun 1, 2021
@brucechou1983
Copy link

Check mediapipe/util/render_data.proto and you'll find FilledRectangle there. Simply modify the calculator to replace Rectangle with FilledRectangle should work.

@sgowroji sgowroji removed the stat:awaiting googler Waiting for Google Engineer's Response label Jul 28, 2021
@sgowroji
Copy link

Assuming you are resolved with this comment. We are closing this issue now.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face mesh Issues related to Face Mesh type:support General questions
Projects
None yet
Development

No branches or pull requests

5 participants