Skip to content

diewland/camvas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camvas

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.

Features

  • Webcam profile support ( qvga, vga, hd, fullhd, 4k, 8k )
  • drawImage tools

Config

Name Description Default value
mode Set camera profile vga
mode_resize Resize canvas by by profile width & height true

Example

var ctx = document.querySelector('canvas').getContext('2d');
var myCamvas = new camvas(ctx);

See https://diewland.github.io/camvas/

TODO

  • change config mode to video_mode

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.5%
  • HTML 30.5%