add a color name library, display it in color picker #10935
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This has been requested by several color-disabled people who wanted to check the color of surfaces to ensure their validity compared to the rest of the population.
We split the visible gamut in 15 hues × 4 lightnesses. Colors are identified coarsely. Colors should have L < 100 % meaning they should be reflective.
We also add average skin tones at ~80% confidence for Kurdish, Chinese, Thai, Caucasian, African-American and Mexican people. The skin tones detection needs proper L scaling, which is 44 to 48 % for African and 58 to 64 % for all others. Of course, neutral white-balance is of the essence here. This is not an ethnicity detection so one skin tone can be detected as belonging to more than one ethnicity, given that skin gamuts overlap greatly between ethnicities (see ref 1 below for graphs).
Reference :
XIAO, Kaida, YATES, Julian M., ZARDAWI, Faraedon, et al.
Characterising the variations in ethnic skin colours: a new calibrated data base for human skin.
Skin Research and Technology, 2017, vol. 23, no 1, p. 21-29.
https://onlinelibrary.wiley.com/doi/pdf/10.1111/srt.12295
Sample : 187 caucasian, 202 chinese, 145 kurdish and 426 thai.
DE RIGAL, Jean, DES MAZIS, Isabelle, DIRIDOLLOU, Stephane, et al.
The effect of age on skin color and color heterogeneity in four ethnic groups.
Skin Research and Technology, 2010, vol. 16, no 2, p. 168-178.
https://pubmed.ncbi.nlm.nih.gov/20456097/
Sample : 121 african-american, 64 mexican.
Note : the data have been read on the graph and are inaccurate and std is majorated.
The original authors have been contacted to get the tabulated, accurate data,
but the main author is retired, co-authors have changed jobs, and the L'Oréal head of R&D
did not respond. So the values here are given for what it's worth.