Infobildschirm vor countdown entfernt (hat die Leute zu sehr verwirrt)
This commit is contained in:
parent
ce71c6803d
commit
f8bcda88f7
26
photobox.py
26
photobox.py
@ -122,12 +122,12 @@ screen = pygame.display.set_mode((WIDTH,HEIGHT))
|
||||
|
||||
|
||||
# LOAD OVERLAYS
|
||||
loading = pygame.image.load(GRAPHICS_DIR + "/loading.png")
|
||||
loading_rect = loading.get_rect()
|
||||
|
||||
begin = pygame.image.load(GRAPHICS_DIR + "/begin.png")
|
||||
begin_rect = begin.get_rect()
|
||||
|
||||
loading = pygame.image.load(GRAPHICS_DIR + "/loading.png")
|
||||
loading_rect = loading.get_rect()
|
||||
|
||||
yes = pygame.image.load(GRAPHICS_DIR + "/yes.png")
|
||||
yes_rect = yes.get_rect()
|
||||
yes_rect.y = 340
|
||||
@ -148,8 +148,6 @@ saved_rect = saved.get_rect()
|
||||
canceled = pygame.image.load(GRAPHICS_DIR + "/canceled.png")
|
||||
canceled_rect = canceled.get_rect()
|
||||
|
||||
#~ img_info = Image.open(GRAPHICS_DIR + '/info.png')
|
||||
|
||||
|
||||
|
||||
# LOAD COUNTDOWN OVERLAYS
|
||||
@ -167,16 +165,6 @@ for i in range(0, COUNTDOWN):
|
||||
|
||||
|
||||
|
||||
# LOAD INFORMATION OVERLAY
|
||||
img_info = Image.open(GRAPHICS_DIR + '/info.png')
|
||||
pad_info = Image.new('RGB', (
|
||||
((img_info.size[0] + 31) // 32) * 32,
|
||||
((img_info.size[1] + 15) // 16) * 16,
|
||||
))
|
||||
pad_info.paste(img_info, (0, 0))
|
||||
|
||||
|
||||
|
||||
# FUNCTIONS ========================================================================================
|
||||
|
||||
def waitForEvent():
|
||||
@ -252,15 +240,7 @@ def makePhotos():
|
||||
camera.hflip = True
|
||||
camera.resolution = (2592, 1944)
|
||||
camera.rotation = 90
|
||||
|
||||
# PREVIEW
|
||||
camera.start_preview()
|
||||
o = camera.add_overlay(pad_info.tostring(), size=img_info.size)
|
||||
o.alpha = 255
|
||||
o.layer = 3
|
||||
sleep(3)
|
||||
camera.remove_overlay(o)
|
||||
sleep(1)
|
||||
|
||||
# COUNTDOWN
|
||||
GPIO.output(7, GPIO.HIGH)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user