ライブカメラのフレームレート取得について
Mostrar comentarios más antiguos
MATLABでwebcam()を使いライブカメラを使用しているのですが,その際にライブカメラのフレームレートを取得することは可能でしょうか。
Respuestas (1)
Atsushi Ueno
el 12 de Nov. de 2021
Editada: Atsushi Ueno
el 12 de Nov. de 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プロパティを持っているとの事です。
Categorías
Más información sobre Image Acquisition Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!