tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit fde2b493e6878effccfe18f725e2de803eca03f0
parent 1c40418f011e9089c612bdf5235d3b10ec16407b
Author: rbckman <robinbackman@gmai.com>
Date:   Wed,  8 May 2019 10:44:09 +0100

added support for picamera v2

Diffstat:
Mtarina.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tarina.py b/tarina.py @@ -1186,7 +1186,12 @@ def startcamera(lens): #lensshade = npzfile['lens_shading_table'] table = read_table('lenses/' + lens) #camera.framerate = 24.999 - camera.framerate = 26.03 + v = picamera.camera.mo.MMALCameraInfo().info_rev + print("picamera version is: " + str(v)) + if v > 1: + camera.framerate = 23.2 + else: + camera.framerate = 26.03 camera.crop = (0, 0, 1.0, 1.0) #camera.video_stabilization = True camera.led = False