# #100DAYSOFCODE Day58

[face-api.js](https://github.com/justadudewhohacks/face-api.js) 

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

![Screen Shot 2021-04-30 at 12.07.58 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1619755991815/i8BYgTbHF.png)

maybe I'll make a face id function


