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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 GenICam Interface에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!