Question about imaq.videodevice/step
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Akira Chan
el 30 de Ag. de 2015
Comentada: Akira Chan
el 31 de Ag. de 2015
Greetings everyone,
I have a problem, I am trying to run live video for matlab and encountered a problem.
Error using imaq.VideoDevice/step
Too many input arguments; expected
0 (in addition to the object
handle), got 1.
Error in LiveVideoTest (line 135)
step(Video, final);
Whereas, Video is the is the imaq.videodevice and the final is my processed image, which is in black and white. WHy it have this error on getting too much input, I only have my final image keyed in to my step function.
Thank you very much.
Regards, Akira
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de Ag. de 2015
imaq.VideoDevice is video acquisition. It gets data from the device you configured. There is no point passing it an image.
I suspect you wanted to pass your image to a vision.VideoPlayer
3 comentarios
Walter Roberson
el 30 de Ag. de 2015
acquired_image = step(Video);
is enough to fetch a frame and store it in acquired_image. The captured mode would be whatever you configured for the imaq.VideoDevice call. At worst you can im2bw() or rgb2gray() the acquired image to convert it to black and white or to grayscale.
Remember, imaq.VideoDevice is for getting frames. There are other calls for displaying frames.
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!