countdown fix
This commit is contained in:
parent
67cee95f1e
commit
343ed5346b
3
main.py
3
main.py
@ -29,7 +29,8 @@ if cam.isOpened():
|
|||||||
draw = ImageDraw.Draw(img)
|
draw = ImageDraw.Draw(img)
|
||||||
font_size = 350
|
font_size = 350
|
||||||
font = ImageFont.truetype("HalloweenFont.ttf", font_size)
|
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)
|
img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
|
||||||
cv2.imshow('webcam',img)
|
cv2.imshow('webcam',img)
|
||||||
# print(str(TIMER))
|
# print(str(TIMER))
|
||||||
|
Loading…
Reference in New Issue
Block a user