A simple HTML5 library to stream a webcam video to a <canvas>
object.
Uses WebRTC (getUserMedia), Canvas and HTML5 Video.
Check out a sample application, too: camvas_photobooth.
- Webcam profile support ( qvga, vga, hd, fullhd, 4k, 8k )
- drawImage tools
Name | Description | Default value |
---|---|---|
mode | Set camera profile | vga |
mode_resize | Resize canvas by by profile width & height | true |
var ctx = document.querySelector('canvas').getContext('2d');
var myCamvas = new camvas(ctx);
See https://diewland.github.io/camvas/
- change config
mode
tovideo_mode