first commit

This commit is contained in:
ryanwong
2022-04-12 08:57:07 -04:00
commit 1bab399b38
446 changed files with 109788 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
const webcamElement = document.getElementById('webcam');
const canvasElement = document.getElementById('canvas');
const snapSoundElement = document.getElementById('snapSound');
if(webcamElement && canvasElement && snapSoundElement){
const webcam = new Webcam(
webcamElement,
'user',
canvasElement,
snapSoundElement,
);
webcam
.start()
.then((result) => {
console.log('webcam started');
})
.catch((err) => {
console.log(err);
});
var picture = webcam.snap();
}