Introduction - If you have any usage issues, please Google them yourself
A java application- processing which can be downloaded free from processing.org
Here it uses a free library- OpenCV- made by intel. .. to convert all the pixels in an image- in fact in a movie- a capture from the webcam. If the color of a pixel is "higher" comparing to a threshold it turns black- otherwise it becomes white.