JavaScript API for Webcam image access using Canvas
Pull request Compare This branch is 6 commits behind taboca:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
samples
src
swf
.gitignore
MIT-LICENSE.txt
build.sh
library.xml
readme.txt

readme.txt

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
====
http://remixpic.taboca.com/co/mozilla/
http://cam.mamulti.com/ ( Bruno Barreto Face Detection Algorithm ) 
http://www.taboca.com/p/camcanvas/

Roadmap
====

* 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 - http://www.mtasc.org/#download 
SwfMill - http://swfmill.org/
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
./build.sh
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;