Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
Optics Guy
Optics Guy le 5 Fév 2016
Modifié(e) : Sanush le 10 Juin 2022
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

Réponses (2)

Gotcha123
Gotcha123 le 7 Fév 2017
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 commentaires
Rachel Chen
Rachel Chen le 14 Sep 2019
Did you find any solution to this problem? Please let me know what you found.
Thanks,
Luca Santoro
Luca Santoro le 18 Oct 2019
yes, it would be very usefull if someone find a solution for this problem

Connectez-vous pour commenter.


Sanush
Sanush le 10 Juin 2022
Modifié(e) : Sanush le 10 Juin 2022
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

Catégories

En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by