Matlab unable to change frame rate
16 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
回答 (1 件)
AG
2020 年 2 月 10 日
編集済み: AG
2020 年 2 月 10 日
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')
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for IP Cameras についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!