i want to process real time video in matlab using mac system,actually my project is real time object detection and tracking,

i want to process real time video in matlab using mac system,actually my project is real time object detection and tracking, but i am not able to process the real time video as the error comes Multiple image acquisition objects cannot access the same device simultaneously.some times time out error comes ,can any one help me and give me the initial lines of code on mac machine.the code is below clear all; close all; %object detection and tracking vidobj = videoinput('macvideo',1,'YCbCr422_1280x720'); image = get(vidobj);
preview(vidobj) ; im=getsnapshot(vidobj); imshow('im'); error:Multiple image acquisition objects cannot access the same device simultaneously.

2 commentaires

Can you format your code so that it is easier to read?
When do you get the error? I'm guessing that it does not happen the first time that you run the code, but it isn't clear exactly what you are doing here.
I asked him the same thing in his duplicate question but he didn't answer.

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 31 Jan 2013

Community Treasure Hunt

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

Start Hunting!

Translated by