필터 지우기
필터 지우기

Get an image as an input from webcam

조회 수: 4 (최근 30일)
Mohammad Almekami
Mohammad Almekami 2020년 1월 18일
답변: Star Strider 2020년 1월 18일
I would like to get an image form webcam as an input an save it on a file. Also I would like to delete this image from the file when a new image has been taken by the webcam.(following image delete previous image).

답변 (1개)

Star Strider
Star Strider 2020년 1월 18일
I assume here that you are using a USB webcam, and not the Image Aquisition Toolbox.
To take picture, use the snapshot function:
img = snapshot(cam);
Then save it using the imwrite function. To delete it later, remember the filename, then use:
savedImage = which(filename)
delete(savedImage)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by