An image is converted to the HSV color space for color based segmentation. The body tones can be used for tracking and AR applications.
This simple color segmentation approach is as follows:
ImageHSV <- ImageRGB
Segment ImageHSV using H-S-V ranges
Return output
The GIF below shows the application of the algorithm on a video: