How to take a capture with the webcam?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Juan Pablo Restrepo Uribe
el 6 de Nov. de 2017
Comentada: Juan Pablo Restrepo Uribe
el 7 de Nov. de 2017
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 comentarios
Respuesta aceptada
Walter Roberson
el 7 de Nov. de 2017
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
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!