ライブカメラのフレームレート取得について
Show older comments
MATLABでwebcam()を使いライブカメラを使用しているのですが,その際にライブカメラのフレームレートを取得することは可能でしょうか。
Answers (1)
Atsushi Ueno
on 12 Nov 2021
Edited: Atsushi Ueno
on 12 Nov 2021
% 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プロパティを持っているとの事です。
Categories
Find more on Image Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!