JavaScript API for Webcam image access using Canvas
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits behind taboca:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Webcam to Canvas JavaScript API 0.2
This API allows you to capture webcam images and use it in the canvas tag to do whatever you like. This version depends on a flash-based SWF file. The .as source is also part of this project and can be compiled with Mtasc. You can also simply use the less than 5K swf binary. This is a client side library and once you have the webcam image in the canvas, you can do anything. 

Online Projects using CamCanvas and Demos
==== ( Bruno Barreto Face Detection Algorithm )


* PENDING= Cam Gestures - higher level edge/pattern detection
* More image manipulation samples ( eliminate background, chromakey etc ) 

If you want to compile the as and change the SWF 

Mtasc - 
SwfMill -
Put mtasc and swfmill binary in this directory and use the build script. 
You will also need ./lib/* from mtasc : ./lib/std and ./lib/std8
Cp the binary ./swf/* to the ./samples/ and enjoy the samples. 

Release Notes

* 0.2
 + ccList function returns strings of camera names separated by comma
 + ccInit(index) 
 + ccCapture() works as the same

* 0.1 - basic function ccCapture() only;  Default was 320x240; Once the flash is active the webcam was initialized; expected JS callback needs to be called passLine. A line of 320 pixels is tranfered to JavaScript - all pixels in a string;