I am trying to use a webcam to detect movement. The code I have now generates a black screen, and when the viewer moves in front of the webcam, the parts of their body that move turn white on a frame-by-frame basis (meaning only when the viewer is moving, the white frames don't stay there).
I am trying to generate abstract shapes based on the viewer's movement through the noise() function, but do not know the best way of going about this. Here is the code I have so far (partially taken from Daniel Shiffman's book, and partially from alexkwolfe.com: