16-08-2012, 03:25 PM
Webcam Interfacing for video recording.
Webcam Interfacing.pptx (Size: 348.71 KB / Downloads: 32)
Inbuilt camera in the computer can be used to take photos and videos and import them to MATLAB workspace.
How to acquire video ?
Start Toolboxes Image acquisition Image acquisition tool.
A new window will open. Here we have options to change the properties of the image to be acquired like resolution, color, size etc.
Acquire only images to workspace.
x=videoinput('winvideo',1);
To configure the port and select the camera.
for i=1:n
n the the number of images to be acquired.
y=getsnapshot(x);
It returns an mage frame to y.
imaqmontage(y);
Displays the acquires image on screen.