ライブカメラのフレームレート取得について
显示 更早的评论
MATLABでwebcam()を使いライブカメラを使用しているのですが,その際にライブカメラのフレームレートを取得することは可能でしょうか。
回答(1 个)
Atsushi Ueno
2021-11-12
编辑:Atsushi Ueno
2021-11-12
% The preview window shows live RGB image from the webcam and displays the camera name, resolution, frame rate, and the timestamp.
% プレビューウィンドウには、ウェブカメラからのライブRGB画像が表示され、カメラ名、解像度、フレームレート、タイムスタンプが表示されます。
cam = webcam;
preview(cam);
プレビューウィンドウの下部にフレームレートが表示されます。

% FrameRate
% A read-only property that displays frames per second for the acquisition.
% Note that some cameras do not support this property, so you may not see it for your device.
% 読み取り専用のプロパティで、撮影時の秒間フレーム数を表示します。
% なお、カメラによってはこのプロパティをサポートしていないものもあるので、お使いのデバイスには表示されないかもしれません。
cam = webcam
cam.FrameRate
ここでは動作確認出来ませんが、上記のオブジェクトが読取専用のFramerateプロパティを持っているとの事です。
类别
在 帮助中心 和 File Exchange 中查找有关 Image Acquisition Toolbox Supported Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!