From 2a2d9a1d3c9b9c3531c33975901c1f82f145a671 Mon Sep 17 00:00:00 2001 From: gocivici Date: Sat, 21 Oct 2023 15:08:22 +0300 Subject: [PATCH] waitkey test --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 717ba32..fa60a37 100644 --- a/main.py +++ b/main.py @@ -68,10 +68,11 @@ if cam.isOpened(): 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) + cv2.imshow('webcam',img) + cv2.waitKey(3000) if fearPoint>0: #rotoImg = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE) - cv2.imshow('webcam',img) + # cv2.imshow('webcam',img) basewidth = 384 imgCrop = Image.open('scared.jpg') wpercent = (basewidth/float(imgCrop.size[0]))