Getting a single frame from the webcam instead of continuous stream + saving those frames in a list

I'm trying to create a simple web application that a user can take a picture with using their webcam. At the moment I have everything figured out so that the webcam is constantly streaming the video to the canvas but I want it to save a "frame" to the app instead. Is this possible? If so, how do I do this? Also, I want to save these images in an array for now. I've tried using array.push() on the timing I want to take a picture (using mouseReleased) but that gives me an array of video streams from the webcam.

Answers

Sign In or Register to comment.