How can I save my camera parameters in a .mat or text file; for example exposure time and ISO value?

15 ビュー (過去 30 日間)
I am acquiring a specific number of frames, with the code below, and I would like to have the information of video objects properties also written into .mat file or a text file. For example: exposure time and the ISO value . Is that possible?
Cheers,
Malu
triggerconfig(vid,'manual');
vid.ReturnedColorSpace = 'grayscale';
vid.TriggerRepeat = inf; %excecute trigger inf
src.ExposureMode = 'Timed'; % Needed to alter the exposure time
src.ExposureTime = 10000; % the time is in seconds
e_time = src.ExposureTime;
set(vid,'Timeout',12); %time out after 12 seconds
start(vid)
tic
trigger(vid)
[frames , ts ] = getdata(vid);
toc

採用された回答

Devineni Aslesha
Devineni Aslesha 2020 年 8 月 24 日
Hi Malu,
Here is a similar question on how to save cameraParameters to a .mat or .txt file using save.
  1 件のコメント
Malu
Malu 2020 年 8 月 24 日
Thank you for your reply!
I set a variable for the information I wanted to get from the source :
a = get(src);
save('Source.mat', 'a')
and it works .

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by