Camera does not show up using imaqtool.

Hi,
I am trying to preview my webcam using imaqtool. Below is the code i used. It works fine with webcam support package but when using imaqtool, it shows up like below image.
vid = videoinput('macvideo', 1, 'YCbCr422_1280x720');
preview(vid);

답변 (2개)

Madhura Suresh
Madhura Suresh 2016년 11월 15일
편집: Madhura Suresh 2016년 11월 15일

0 개 추천

Was the webcam object still in the workspace when you previewed this? That webcam object should be deleted, because the camera can be only be accessed by one object at a given point in time. Use
clear cam % where cam is the webcam object

댓글 수: 1

ROHIT AILA
ROHIT AILA 2016년 11월 15일
Hi Madhura Suresh,
My webcam object was not present int the workspace. Still i tried clearing the cam object. It did not work for me.

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

Maoqi Li
Maoqi Li 2016년 12월 4일

0 개 추천

I have the same problem. So how to solve it?

댓글 수: 4

ROHIT AILA
ROHIT AILA 2016년 12월 11일
@Maoqi Li Please let me know if you find a solution to this problem.
DSB
DSB 2017년 4월 22일
did you find any solution ?? I have the same problem you had
Image Analyst
Image Analyst 2017년 4월 22일
If using Windows, then does the camera show up in Device Manager? If not, then not even Windows sees the camera, so MATLAB has no chance at it. If it does, then you may need to register a third party adapter from imaqtool's pulldown menu. Ask the camera manufacturer what that file might be, if they have one. If they don't have one, then maybe you can use a generic one instead like DCAM.
DSB
DSB 2017년 4월 22일
i'm using mackbook pro

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

질문:

2016년 11월 14일

댓글:

DSB
2017년 4월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by