hsv_ycrcb
hsv_ycrcb
HSVandYCrCbSkinSegmentation
Bases: SkinSegmentation
A class for skin segmentation using HSV and YCrCb color spaces.
Source code in redesign_pipeline/skin_segmentation/hsv_ycrcb.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
extraction_mask(img, results)
Generate a skin extraction mask based on HSV and YCrCb color spaces.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
img |
numpy.ndarray
|
Input image. |
required |
results |
Unused argument. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Skin extraction mask. |
Source code in redesign_pipeline/skin_segmentation/hsv_ycrcb.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |