From 343ed5346be74a2e5ae925ee81e7417af081077c Mon Sep 17 00:00:00 2001 From: gocivici Date: Thu, 19 Oct 2023 14:29:16 +0300 Subject: [PATCH] countdown fix --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 74dc4e5..ebb6052 100644 --- a/main.py +++ b/main.py @@ -29,7 +29,8 @@ if cam.isOpened(): draw = ImageDraw.Draw(img) font_size = 350 font = ImageFont.truetype("HalloweenFont.ttf", font_size) - draw.text((231, 50), str(TIMER), font=font,fill=(255,0,0,255)) + if TIMER>1: + draw.text((231, 50), str(TIMER), font=font,fill=(255,0,0,255)) img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR) cv2.imshow('webcam',img) # print(str(TIMER))