Simple webcam with websockets and Processing
I heard someone was streaming Kinect data and it made me wonder if you could just stream image data over websockets if you encoded every frame to Base64. This is useful because you can use Base64 strings to define images in HTML:
var img;
ws.onmessage = function (e) {
$(”#image”).attr(’src’, ‘data:image/jpg;base64,’+e.data);
}
It also seems pretty straight forward [...]
