The ImageCapture Web API allows web developers to capture images from camera in the form of a Blob with takePhoto() or as a ImageBitmap with grabFrame().
takePhoto()
grabFrame()