Opencv JS - extracting skin tones

asked 2020-03-29 08:24:30 -0500

So for a project of mine I need to extract skin tones from an image. To do this, what I've done is converted RGB2HSV and then try to detect using a skin range found in other projects I've found that have done something similar however in opencv JS I'm forced to use the alpha channel as In order to conduct an inrange I require 4 channels instead of 3. This has significantly confused me and how I'm supposed to detect skin tones. Additionally,

here is a user with a similar problem to me but with no solution to his issue: https://stackoverflow.com/questions/4...

edit retag flag offensive close merge delete

Comments

maybe you can explain, why alpha is a problem ?

berak gravatar imageberak ( 2020-03-29 09:08:05 -0500 )edit

Should have explained so my bad but I'm not quite sure how I'm suppose to use it here. I don't know what I'm suppose to put for the last index of each array.

StressedOutBox gravatar imageStressedOutBox ( 2020-03-29 09:57:42 -0500 )edit