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 vue (au cours des 30 derniers jours)
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));

Réponses (0)

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by