Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Optics Guy
Optics Guy el 5 de Feb. de 2016
Editada: Sanush el 10 de Jun. de 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

Respuestas (2)

Gotcha123
Gotcha123 el 7 de Feb. de 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 comentarios
Rachel Chen
Rachel Chen el 14 de Sept. de 2019
Did you find any solution to this problem? Please let me know what you found.
Thanks,
Luca Santoro
Luca Santoro el 18 de Oct. de 2019
yes, it would be very usefull if someone find a solution for this problem

Iniciar sesión para comentar.


Sanush
Sanush el 10 de Jun. de 2022
Editada: Sanush el 10 de Jun. de 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

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by