Info

This question is closed. Reopen it to edit or answer.

can i get the source code for obtaining 30fps from a video in real time(camera of any model)l??

1 view (last 30 days)
actually i have to obtain source code for obtaining frames(30fps) from a live video from camera( any model). if code is not of genric type then give me of any model
  2 Comments
Mohd Aquib
Mohd Aquib on 1 May 2013
hi Walter
thank u for replying... using ur suggestion i m executing this code for the extracting image from webcam
but i am facing this kind of error
??? Undefined function or method 'videoinput' for input arguments of type 'char'.
Error in ==> webcam at 12 vid = videoinput('Video0004.avi', 1, 'RGB24_640x480');
plz help
if(~isdeployed) cd(fileparts(which(mfilename))); end clc; % Clear command window. clear; % Delete all variables. close all; % Close all figure windows except those created by imtool. imtool close all; % Close all figure windows created by imtool. workspace; % Make sure the workspace panel is showing. fontSize = 36;
% Start up the video. vid = videoinput('winvideo', 1, 'RGB24_640x480'); vid.FramesPerTrigger = 1; preview(vid); start(vid);
% Get image and display it. rgbImage = getdata(vid); subplot(1,2, 1); imshow(rgbImage); title('Initial Image', 'FontSize', fontSize); % Enlarge figure to full screen. set(gcf, 'Position', get(0,'Screensize'));
% Save this image to disk. fullImageFileName = fullfile(pwd, 'myfirstimage.jpg'); imwrite(rgbImage,fullImageFileName);
% Read it back in to check it. recalledImage = imread(fullImageFileName); subplot(1,2, 2); imshow(recalledImage); title('Recalled Image', 'FontSize', fontSize);
% Delete the file. delete(fullImageFileName);

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!