필터 지우기
필터 지우기

Question about imaq.videodevice/step

조회 수: 1 (최근 30일)
Akira Chan
Akira Chan 2015년 8월 30일
댓글: Akira Chan 2015년 8월 31일
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

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 30일
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
Walter Roberson
Walter Roberson 2015년 8월 30일
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.
Akira Chan
Akira Chan 2015년 8월 31일
Dear Mr Walter,
Thank you for your guidance. I can now play live video on my system right now thank you :D
Regards,
Akira

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by