How to take a capture with the webcam?
조회 수: 2 (최근 30일)
이전 댓글 표시
Juan Pablo Restrepo Uribe
2017년 11월 6일
댓글: Juan Pablo Restrepo Uribe
2017년 11월 7일
hello
I'm trying to capture a video that I get directly from the web, but at the moment of checking the capture I realize that this is not in the real colors, if not in green or blue, I want to know how to correct this error The code I use is the following:
vid=videoinput('winvideo');
start(vid);
picture=getdata(vid,1);
preview(vid)
imaqmontage(picture);
the stored image is
Thanks
댓글 수: 0
채택된 답변
Walter Roberson
2017년 11월 7일
For some devices you can configure the returned color space; https://www.mathworks.com/help/imaq/returnedcolorspace.html and https://www.mathworks.com/help/imaq/specifying-the-color-space.html
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!