printer test

This commit is contained in:
gocivici 2023-10-21 15:50:13 +03:00
parent 1c3e9044f6
commit 5ebe353bd9

12
main.py
View File

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