So I started doing some stuff with a webcam and want to get into the image processing part of the project pretty quick. After digging around on mathworks.com I was able to peace together some code and get some images off my webcam. It wasn't actually too hard and the code is pretty straight forward once you know which library's to use.
Here is the code I used:
%% lecture_cam Teachers Pet 8 May 2015
% J. Buttars
cam = webcam(1)%#ok display available webcams
%My web cam is the first one on the list
preview(cam); % Lets see what the camera can see
pause; % Keep the preview going till key is pressed
clear cam; % Free up the resource for latter use
Top Comments
-
DAB
-
Cancel
-
Vote Up
+1
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
jbuttars
in reply to DAB
-
Cancel
-
Vote Up
0
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Comment-
jbuttars
in reply to DAB
-
Cancel
-
Vote Up
0
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Children