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