Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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 个评论
Mohd Aquib
Mohd Aquib 2013-5-1
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);

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by