waitkey test

This commit is contained in:
gocivici 2023-10-21 15:08:22 +03:00
parent 2d35100050
commit 2a2d9a1d3c

View File

@ -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]))