1 | initial version |
First you should detect face.you can use OpenCV Face detection.
then you can compute [histogram](http://docs.opencv.org/modules/imgproc/doc/histograms.html?highlight=histogram#void cvCalcHist(IplImage* image, CvHistogram hist, int accumulate, const CvArr* mask) of detected face.the most frequent color is face's color and you can use it to change color of body.