Using Image Acquisition Toolbox, "getsnapshot" function is ending up with blank (all black) photos.
Yet, when I use preview(TopCam), the camera initializes and shows video properly.
My understanding is that, getsnapshot will turn on the camera, wait for video stream to begin, take a frame from this stream, and save it to memory, then terminate stream.
I am unsure where the black or blank photo data is coming from.
Below is my code and output:
TopCam = videoinput('winvideo', 2, 'MJPG_4096x2160');TopImg = getsnapshot(TopCam);image(TopImg);
Best Answer