Camera does not show up using imaqtool.

14 views (last 30 days)
ROHIT AILA on 14 Nov 2016
Commented: DSB on 22 Apr 2017
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');

Answers (2)

Madhura Suresh
Madhura Suresh on 15 Nov 2016
Edited: Madhura Suresh on 15 Nov 2016
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 Comment
ROHIT AILA on 15 Nov 2016
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.

Sign in to comment.

Maoqi Li
Maoqi Li on 4 Dec 2016
I have the same problem. So how to solve it?
DSB on 22 Apr 2017
i'm using mackbook pro

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by