Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 ビュー (過去 30 日間)
Mohd Aquib
Mohd Aquib 2013 年 4 月 29 日
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