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

What is color code to get this hair color to black? i have tried different color codes but not able to change the hair color to black. #5

Open
Vamshigoud784 opened this issue May 21, 2020 · 3 comments

Comments

@Vamshigoud784
Copy link

Vamshigoud784 commented May 21, 2020

What is color code to get this hair color to black? i have tried different color codes but not able to change the hair color to black

@daxjain789
Copy link

I have same problem

@3shry
Copy link

3shry commented May 16, 2021

same problem here
plz help

@waleedrazakhan92
Copy link

@daxjain789 @Vamshigoud784 @3shry is you see the link https://www.rapidtables.com/convert/color/rgb-to-hsv.html
You can notice that for some of the colors the H and S channel percentages are 0.
In the code while changing the mask to hsv format, only first channel is replaced . So if you change these lines from image_hsv[:, :, 0:1] = tar_hsv[:, :, 0:1] and image_hsv[:, :, 0:2] = tar_hsv[:, :, 0:2] to image_hsv[mask!=0] = tar_hsv[mask!=0], you can use this to get the desired colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants