Image capture using webcam
Mostrar comentarios más antiguos
I am using matlab for capturing image using a webcam(company-Labtec) whenever i get a snapshot the image appears Red.How should i overcome this problem?
Also how can I increase the shuter exposore time of the webcam?
OS-Windows XP
3 comentarios
manali jangam
el 5 de Dic. de 2016
when the snapshot of images is recorded...its not showing its file format..how should we get that..????
Mohan Kant
el 12 de Mzo. de 2017
the same problem with me please solve that problem
Chaitanya Panse
el 27 de Mayo de 2018
Editada: Chaitanya Panse
el 27 de Mayo de 2018
The problem with my GUI is that whenever i connect an external webcam and run in GUI the axis becomes very small that it is hardly seen. How do i overcome this problem? Please help.
Respuesta aceptada
Más respuestas (5)
Mark Jones
el 25 de Abr. de 2011
Editada: John Kelly
el 13 de Nov. de 2013
0 votos
Alternatively, it may be that your camera needs to warm up. To allow for this, try using manual triggering and GETSNAPSHOT.
Ian
el 7 de Jul. de 2014
0 votos
I got this to work, but is there a way to then read that image? Like to call it back so matlab can analyze it?
6 comentarios
Image Analyst
el 7 de Jul. de 2014
What did you do? Did you call getsnapshot()? Did you call imwrite() or imread()? How can we discover what you did to say that it both worked but you don't have the image yet? Show your code.
Ian
el 7 de Jul. de 2014
camlist=webcamlist; cam = webcam(1); preview(cam); img=snapshot(cam); orignalimage=imread(img);
and then this error comes up:
Error using imread>parse_inputs (line 457) The filename or url argument must be a string.
Error in imread (line 316) [filename, fmt_s, extraArgs] = parse_inputs(varargin{:});
Ian
el 7 de Jul. de 2014
I get the image, but now I want to use that image to get other data, but I can't seem to read the image
Anchit Dhar
el 9 de Jul. de 2014
The SNAPSHOT command returns the RGB image. The "img" variable is your image. A call to IMREAD is not required.
Ian
el 10 de Jul. de 2014
Ahhh thank you very much! I have gotten the code to work now.
Antonio Meza
el 5 de Nov. de 2015
Thank you!! it works. Finally, i can finish my project. Greetengs from Mexico
finalyear project
el 21 de Oct. de 2016
0 votos
Tried to take an image using webcam by following code
vid = videoinput('winvideo', 3);
set(vid, 'ReturnedColorSpace', 'RGB');
img = getsnapshot(vid);
imshow(img)
but still got black image.Can anybody please suggest something?
1 comentario
Syed Aameer
el 1 de Feb. de 2017
attach this code above to to your code axes(handles.axes1);
hImage=image(zeros(80,120,3),'Parent',handles.axes1); preview(vid,hImage);
mohamed hushan
el 5 de Oct. de 2017
Editada: Walter Roberson
el 16 de Mayo de 2020
vid = videoinput('winvideo', 1);
set(vid, 'ReturnedColorSpace', 'RGB');
img = getsnapshot(vid); imshow(img)
after that how to save the snap images into folder?
Shrey Garg
el 16 de Mayo de 2020
0 votos
webcam not working in matlab
it opensup logitech webcam nut it doesnot works and displays message that application already opened
Categorías
Más información sobre Matrox Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!