removed stop_preview + flip camera
This commit is contained in:
parent
0502f2256d
commit
630e55122a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user