Step 20: Make a button to take a picture from the
webcam.
Hint: Use the following code and modify accordingly to
take a picture from the webcam:
// clear the canvas
context.clearRect(0, 0, yourCanvasVariable.width, yourCanvasVariable.height)
// draw the current video frame on the top left corner of the canvas
context.drawImage(yourVideoVariable, 0, 0)