ライブカメラのフレームレート取得について
古いコメントを表示
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!