From 3cd75f4960c44016a22bf472ccb7f36c1b1efff6 Mon Sep 17 00:00:00 2001 From: gocivici Date: Sat, 21 Oct 2023 14:50:31 +0300 Subject: [PATCH] fear text fix 2 --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8b5e5d3..d38a914 100644 --- a/main.py +++ b/main.py @@ -67,6 +67,8 @@ if cam.isOpened(): text = "FEAR LEVEL" draw.text((144, 308), str(text), 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) if fearPoint>0: #rotoImg = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE) @@ -92,9 +94,7 @@ if cam.isOpened(): # ft.putText(img=img,text='TEST',org=(15, 70),fontHeight=60,color=(255, 255, 255),thickness=-1,line_type=cv2.LINE_AA,bottomLeftOrigin=True) #cv2.rectangle(img,(30,400),(610,450),(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(5000)