Ask Your Question

Revision history [back]

click to hide/show revision 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.