izmgmd1992
Newbie level 2
- Joined
- May 5, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 15
I am working on controlling two industrial cameras (IEEE1394b) via Matlab. I need some help please. How can I control two cameras simultaneous in real time on Matlab. And For acquire real time video simultaneously, we must synchronize with hardware triggering.
The brand of the two cameras is AVT STRINGRAY F033
What kind of toolbox can I use ? Image Acquisition toolbox or Computer Vision System Toolbox.
Once time acquisition are finished, when I tried to reacquiring video via matlab I have the following errors in matlab :
Error using videoinput (line 391)
dcam: DCAM device register initialization failed.
The brand of the two cameras is AVT STRINGRAY F033
What kind of toolbox can I use ? Image Acquisition toolbox or Computer Vision System Toolbox.
Code:
function acquisition_cam1
clc
clear all
disp('Début du programme');
workspace;
delete(instrfindall);
imaqreset;
cam1 = videoinput('dcam', 1, 'Y16_640x480'); %select input device
hvpc = vision.VideoPlayer; %create video player object
src = getselectedsource(cam1);
cam1.FramesPerTrigger =1;
cam1.TriggerRepeat = Inf;
cam1.ReturnedColorspace = 'rgb';
src.FrameRate = '30';
start(cam1)
%start main loop for image acquisition
for t=1:500
imgO=getdata(cam1,1,'uint8'); %get image from camera
hvpc.step(imgO); %see current image in player
end
Once time acquisition are finished, when I tried to reacquiring video via matlab I have the following errors in matlab :
Error using videoinput (line 391)
dcam: DCAM device register initialization failed.