From 1fd481e64f75b454c355685a862e66bf25d101ad Mon Sep 17 00:00:00 2001 From: gocivici Date: Fri, 20 Oct 2023 15:26:31 +0300 Subject: [PATCH] fear level --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5a3fff8..b6aa160 100644 --- a/main.py +++ b/main.py @@ -85,8 +85,8 @@ if cam.isOpened(): img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR) #print(30+math.floor(int(fearPoint)*580/100)) # 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) + 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) cv2.imshow('webcam',img)