that code looks quite specific to python, but you could try:
- get a skin mask (sounds like you already have that)
- blur (a copy of) the whole image
- use copyTo() (and using that mask) to overlay the blurred skin regions
that code looks quite specific to python, but you could try: