timer fix
This commit is contained in:
parent
fa4d7b0e7c
commit
14095cc809
3
main.py
3
main.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user