fear level bar

This commit is contained in:
gocivici 2023-10-21 15:18:52 +03:00
parent 2a2d9a1d3c
commit 0b38e61743

View File

@ -65,8 +65,10 @@ if cam.isOpened():
font_size = 65
font = ImageFont.truetype("HalloweenFont.ttf", font_size)
text = "FEAR LEVEL"
draw.text((144, 308), str(text), font=font,fill=(255,0,0,255))
draw.text((59, 428), str(text), font=font,fill=(255,0,0,255))
img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
cv2.rectangle(img,(30,550),(450,600),(255,255,255), 5)
# cv2.rectangle(img,(30,400),(30+math.floor(int(fearPoint)*580/100),450),(255,255,255), -1)
img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)
cv2.imshow('webcam',img)
cv2.waitKey(3000)