open the camera on websites
if (navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices
.getUserMedia({ video: true })
.then(function (stream) {
video.srcObject = stream
})
.catch(function (err0r) {
console.log("Something went wrong!")
})
}
tried to use face-api js
maybe I'll make a face id function