From 630e55122a15e8e3dbbfa0c7108c07a1be6a89ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Fri, 27 Jun 2025 21:28:16 +0200 Subject: [PATCH] removed stop_preview + flip camera --- Fotobox.py | 4 +++- INSTALL | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Fotobox.py b/Fotobox.py index 6786aaa..56d77ec 100644 --- a/Fotobox.py +++ b/Fotobox.py @@ -15,6 +15,7 @@ from enum import Enum from config import read, file_increase, iso, now from timer import Timer +from libcamera import Transform class State(Enum): @@ -36,6 +37,7 @@ class Fotobox: camera.rotation = 270 camera.preview_configuration.main.size = res camera.preview_configuration.main.format = 'BGR888' + camera.preview_configuration.transform = Transform(hflip=1, vflip=1) camera.configure("preview") ##################### # here configure still capture @@ -221,7 +223,7 @@ class Fotobox: print("Starting shooting: S%04d-%s" % (self._shooting_number, iso(self._shooting_datetime))) self._shooting_timer.restart() elif new_state == State.PREPARE: - self._camera.stop_preview() + #self._camera.stop_preview() for photo in self._photos: photo.prepare(self._event) self._set_state(State.CHOOSE) diff --git a/INSTALL b/INSTALL index 7ee34bb..672d493 100644 --- a/INSTALL +++ b/INSTALL @@ -6,3 +6,6 @@ python3 -m venv venv --system-site-packages . venv/bin/activate pip install pygame qrcode escpos picamera2 +add to /boot/firmware/cmdline.txt +video=DSI-1:800x480@60,rotate= +