From 635ed95fde8fcb138598117fb3a8499cbb5b8ac1 Mon Sep 17 00:00:00 2001 From: gocivici Date: Sat, 21 Oct 2023 15:23:50 +0300 Subject: [PATCH] fear level test --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5773bf3..4ca9e76 100644 --- a/main.py +++ b/main.py @@ -65,10 +65,10 @@ if cam.isOpened(): font_size = 65 font = ImageFont.truetype("HalloweenFont.ttf", font_size) text = "FEAR LEVEL" - draw.text((59, 428), str(text), font=font,fill=(255,0,0,255)) + draw.text((59, 452), 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) + cv2.rectangle(img,(30,550),(30+math.floor(int(fearPoint)*420/100),450),(255,255,255), -1) img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE) cv2.imshow('webcam',img) cv2.waitKey(3000)