Real Time Video Acquisition: How can i set the frame rate acquisition or how can i know the frame rate acquisition by which the camera is working?

1 回表示 (過去 30 日間)
Hi everybody and thanks for your help. I need to know at which frame rate i'm working with the following lines code, and then i'd like to if it's possible to set the frame rate by myself and how to do it. Here there are the lines code:
clear all
a = imaqhwinfo; [camera_name, camera_id, format] = getCameraInfo(a);
vid = videoinput(camera_name, camera_id, format);
% Settiamo le proprietà dell'oggetto video set(vid, 'FramesPerTrigger', Inf); set(vid, 'ReturnedColorspace', 'rgb') vid.FrameGrabInterval = 5;
where getCameraInfo is
function [camera_name, camera_id, resolution] = getCameraInfo(a) camera_name = char(a.InstalledAdaptors(end)); camera_info = imaqhwinfo(camera_name); camera_id = camera_info.DeviceInfo.DeviceID(end); resolution = char(camera_info.DeviceInfo.SupportedFormats(end));

回答 (0 件)

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by