timer fix

This commit is contained in:
gocivici 2023-10-21 14:58:42 +03:00
parent fa4d7b0e7c
commit 14095cc809

View File

@ -38,8 +38,7 @@ if cam.isOpened():
draw = ImageDraw.Draw(img)
font_size = 200
font = ImageFont.truetype("HalloweenFont.ttf", font_size)
if TIMER>1:
draw.text((180, 400), str(TIMER), font=font,fill=(255,0,0,255))
draw.text((180, 400), str(TIMER), font=font,fill=(255,0,0,255))
img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)
cv2.imshow('webcam',img)