Camera
provides easy functions to take images, sets up a video and canvas element
Constructor Summary
Public Constructor | ||
public |
constructor(mediaOptions: Object, width: number) creates an instance of Camera |
Member Summary
Public Members | ||
public |
canvas: * type {Object} |
|
public |
video: * type {Object} |
|
public |
width: * type {number} |
Method Summary
Public Methods | ||
public |
sets the resolution of both video and canvas element, so that no distortion happens. |
|
public |
takes an image by drawing the video element's content on the canvas. |