필터 지우기
필터 지우기

Raspberry Pi camera - how to set shutter speed with cameraboard object

조회 수: 4 (최근 30일)
Optics Guy
Optics Guy 2016년 2월 5일
편집: Sanush 2022년 6월 10일
How can I set the shutter speed/exposure time using a raspi cameraboard object? I'm looking for the equivalent of
raspistill -ss 20000, for example (set shutter speed to 20 ms)
rpi = raspi(); cam = cameraboard(rpi); cam.ShutterSpeed = 20000; % example of what I'd like to do

답변 (2개)

Gotcha123
Gotcha123 2017년 2월 7일
You need to modify the cameraboard.m file because in that file the command for modifiying the shutter speed exists. It looks like the developers were going to implement it but at last they did not or at least I do not know if there have been modifications to the code since last year.
  댓글 수: 2
Rachel Chen
Rachel Chen 2019년 9월 14일
Did you find any solution to this problem? Please let me know what you found.
Thanks,
Luca Santoro
Luca Santoro 2019년 10월 18일
yes, it would be very usefull if someone find a solution for this problem

댓글을 달려면 로그인하십시오.


Sanush
Sanush 2022년 6월 10일
편집: Sanush 2022년 6월 10일
You can change shutter speed by directly writing on the pi terminal using the system function
% Read Raspberry Pi Board
rpi = raspi;
% Get image
system(rpi,'raspistill -n -ss 10 -o SS10.jpg')
system(rpi,'raspistill -n -ss 100000 -o SS100000.jpg')
% Transfer file to matlab
getFile(rpi,'/home/pi/SS10.jpg')
getFile(rpi,'/home/pi/SS100000.jpg')
@Gotcha123's method didnt work for me. The images looked the same after changing shutter speed.
You can give it a go yourself. The files you have to change are at
C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\realtime\targets\raspi\+raspi\+internal\CameraBoard.m
C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\realtime\targets\raspi\+raspi\+internal\+codegen\cameraboard.m

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by