a canvas // Get a video stream from the webcam navigator.mediaDevices.getUserMedia() // Draw the video stream in CanvasRenderingContext2D canvas.drawImage() // Read the canvas pixels canvas.getImageData() // Write the canvas pixels canvas.putImageData()