I'm pretty new to Processing, and this is probably quite a complex first project to do, but i'd like to capture image from a webcam, and use OpenCV or another method to detect presence + motion. The idea is that when the subject moves closer to the webcam, the image becomes scrambled by means of glitching, or something else to similar effect.
I've used the method from this page
here to successfully detect presence, but from there i'm not quite sure what to do. I know that it will be along the lines of using pixel arrays, manipulating the pixels ('glitching' the image) and writing it back to the sketch. A guy I spoke to seemed to hint that you could list the pixels and manipulate them from there, but still not entirely sure where to start. If anyone could point me in a good direction, that would be wonderful! Thank you.