Matlab unable to change frame rate

22 visualizaciones (últimos 30 días)
Jayabrata Dhar
Jayabrata Dhar el 27 de En. de 2020
Comentada: Jayabrata Dhar el 10 de Feb. de 2020
Hello,
So, I am using the DFK 33UX290 Imaging Source Camera through MATLAB. The camera offers many frame rates that I can see through imaqtool GUI or even gather the values through
propinfo(src,'FrameRate')
However, when I am trying to set the frame rate to a different value (say the lowest frame rate of 1.000, either through imaqtool or by using
src.FrameRate = '1.000';
MATLAB always ends up using the maximum frame rate. Even in the preview vdieo, I expect the video to be very slow at such low frame rates but MATLAB shows a normal video, besides displaying that it is showing the video with the highest possible frame rate. Even when I am capturing, say 10 frames at 100 frames per trigger (1 trigger) at 1.000 frame rate, I would expect the capturing time should be 10s. However, it gets captured in a split of a second and thus it can be concluded that MATLAB is not actually changing the frame rate even if I ask it to do so? I have not tried to see if this issue remains with other cameras as well but my Imaging Source camera defitely has this issue. To note, when I am using the default Imaging Source Software, there is no such frame rate inconsistency issue.
Is it the problem of the firmware that MATLAB and the camera hardware is not communicating or it is a issue with MATLAB itself? Kindly help!

Respuestas (1)

AG
AG el 10 de Feb. de 2020
Editada: AG el 10 de Feb. de 2020
Try using exactly the same string as is obtained from the camera.
% use 'set' to return the cell array of values accepted by the camera. Yes use 'set' to get this
frameRates = set(selectedsrc, 'FrameRate');
% then choose whichever value from the cell array that you want
% in this example it is the fastest frame rate, but change {1} to the value you want, i.e., {4}
set(selectedsrc, 'FrameRate', frameRates{1});
% then test to see if it is in fact set as you expect
get(selectedsrc, 'FrameRate')
  1 comentario
Jayabrata Dhar
Jayabrata Dhar el 10 de Feb. de 2020
Thanks a lot for your answer, I will definitely look into it ASAP and get back to you.
Small note: I was trying even with the GUI version of imaqtool but still it wasn't able to change the framerate which, by the way, the imaging source software (IC Capture) that is dedicated to the camera, can easily do.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by