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 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su National Instruments Frame Grabbers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!