retrieve information of timestamp using 'preview'

3 ビュー (過去 30 日間)
leon Staunstrup
leon Staunstrup 2018 年 3 月 1 日
回答済み: Malu 2020 年 8 月 10 日
Hi, I use 'preview' in order to see my videoinput from a USB camera. In the plot of the preview Timestamp is visible, but how can the data of timestamp be extracted to a vector? The idea is such that the only each 20 seconds a frame is recorded using snapshot.
clear all; close all; clc; camList = webcamlist % Connect to the webcam. cam1 = webcam(1) cam2 = webcam(3) preview(cam1); preview(cam2);

回答 (1 件)

Malu
Malu 2020 年 8 月 10 日
[ frames, timestamps] = getdata(vidObj); % here you are acquiring the data from your video object
save('frames.mat','frames') ;
save('timestamps.mat','timestams');
you can save them as a matrix.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by