font change
This commit is contained in:
parent
170db6a1ab
commit
b41778bc94
4
main.py
4
main.py
@ -38,10 +38,10 @@ if cam.isOpened():
|
|||||||
img = Image.fromarray(img)
|
img = Image.fromarray(img)
|
||||||
draw = ImageDraw.Draw(img)
|
draw = ImageDraw.Draw(img)
|
||||||
|
|
||||||
fontBIG = ImageFont.truetype("HalloweenFont.ttf", 250)
|
fontBIG = ImageFont.truetype("HalloweenFont.ttf", 350)
|
||||||
fontSmall = ImageFont.truetype("HalloweenFont.ttf", 60)
|
fontSmall = ImageFont.truetype("HalloweenFont.ttf", 60)
|
||||||
if TIMER>0:
|
if TIMER>0:
|
||||||
draw.text((180, 400), str(TIMER), font=fontBIG,fill=(255,0,0,255))
|
draw.text((170, 380), str(TIMER), font=fontBIG,fill=(255,0,0,255))
|
||||||
else:
|
else:
|
||||||
draw.text((30, 480), "ANALYZING...", font=fontSmall,fill=(255,0,0,255))
|
draw.text((30, 480), "ANALYZING...", font=fontSmall,fill=(255,0,0,255))
|
||||||
img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
|
img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
|
||||||
|
Loading…
Reference in New Issue
Block a user