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)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur GenICam Interface dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!