Capture an image from webcam
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi! I have a webcam.I want to capture an image from webcam and the save that picture into some type of image (*.jpg,*.png...).Can you tell me how can I do that.Thanks a lot
댓글 수: 0
답변 (1개)
Chirag Gupta
2011년 4월 22일
The Image Acquisition Toolbox should be able to help you achieve that. The commands are straightforward.
The command would just be:
vidobj = videoinput('winvideo');
snapshot = getsnapshot(vidobj);
imagesc(snapshot)
댓글 수: 2
Chirag Gupta
2011년 4월 25일
You could post this as a separate question with a title like image processing. This way you could get the Image Processing gurus to step in
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!