i'm guessing you're using the webcam to make low poly representation of human faces, instead of let's say your cat or cactus?
well the generating the polygon pattern is fairly simple using [jit.bfg] with voronoi. in the help patch for [jit.bfg] and under the voronoi tab, check out the "id" option in the "prepend metric" section. that will give you hard edge single color greyscale polygon. using the area of each polygon, sample the average brightness/color in the corresponding area of your webcam matrix, and color each polygon to that sampled color. Using [jit.cellblock] you should see fairly clearly where the coordinates for each polygon's bounds are (since it'll be a one plane greyscale matrix).
and then using the jit.cv objects, track a person's face, and using the xray objects (???) determine the facial perimeter contours, and use that to carve the facial contours into colored polygon pattern image and mask out all the surrounding polygons.
that's probably confusing, mainly because i'm still hashing it out in my head, and my solution in pretty overwrought. maybe there's some shader out there that will convert everything into low poly?
Now I have started to build the actual stuff. But I am not sure how I can "using the area of each polygon, sample the average brightness/color in the corresponding area of your webcam matrix, and color each polygon to that sampled color". I know what you mean, but I am not skilful enough to implement that... Could you kindly give me some clues? All I can guess now is that I can use jit.gl.pix for sampling.
Also could you kindly tell me a bit more about "xray objects"...?