From 5ebe353bd9a6710af1bbe9ea7a59c79bcee35242 Mon Sep 17 00:00:00 2001 From: gocivici Date: Sat, 21 Oct 2023 15:50:13 +0300 Subject: [PATCH] printer test --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index bafb39d..f53509e 100644 --- a/main.py +++ b/main.py @@ -75,7 +75,7 @@ if cam.isOpened(): cv2.rectangle(img,(30,550),(450,600),(0,0,255), 8) img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE) cv2.imshow('webcam',img) - cv2.waitKey(5000) + cv2.waitKey(7000) if fearPoint>0: #rotoImg = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE) # cv2.imshow('webcam',img) @@ -86,12 +86,12 @@ if cam.isOpened(): imgCrop = imgCrop.resize((basewidth,hsize), Image.Resampling.LANCZOS) imgCrop = imgCrop.save("cropScared.jpg") # cv2.waitKey(2000) - # printer.set(align='center',font='b',width=2,height=2) + printer.set(align='center',font='b',width=2,height=2) - # printer.image("cropScared.jpg",impl="bitImageRaster") - # printer.text("Fear Level: \n" + str(round(fearPoint,2))+"/100\n") - # printer.text("(Scream Queen)\n") - # printer.text("\n\n\n\n") + printer.image("cropScared.jpg",impl="bitImageRaster") + printer.text("Fear Level: \n" + str(round(fearPoint,2))+"/100\n") + printer.text("(Scream Queen)\n") + printer.text("\n\n\n\n") #printer.set(align='center',font='b',width=1,height=1) #printer.text("Spooky Night 2023") #printer.text("2023\n")