1) The image form the webcam is taken every 1/4 of a second. It's broken down into 64 pixels averaging out the colour of that area.
2) These colours are instantly turned into numbers with each of the 64 pixels being alloted a number of between 0 and 255 to represent it's colour.
3) These 64 numbers are fed (at the speed of super fast light) to a table that has alloted all the numbers from 0 to 255 to the first 256 words of Paul Auster's City Of Glass. For instance if the number 0 comes from a cell (pure white) then it is given the word 'It'. For 255 (pure black) it is given the word 'To'. The words are then fed from the, so far, incomplete right part of the program that draws each word or symbol as an image and puts it in a space on a blank 'canvas' as it were...
4) Which is where this guy comes in, the final output. Like I say only the first row of cells has been done so the other 7 rows (56 cells) have yet to be programmed to be drawn. But you get the idea.
No comments:
Post a Comment