From b5ebb9a09898d0c5e34629bb76073c1b16d59ca0 Mon Sep 17 00:00:00 2001 From: gocivici Date: Fri, 27 Oct 2023 15:17:43 +0300 Subject: [PATCH] test percentage at the front --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c74d02e..278efae 100644 --- a/main.py +++ b/main.py @@ -101,7 +101,7 @@ if cam.isOpened(): printer.set(align='center',font='a',width=2,height=2) printer.image("cropScared.jpg",high_density_vertical=True,high_density_horizontal=False,impl="bitImageRaster") - printer.text("Fear Level\n" + str(round(fearPoint,1))+"%\n") + printer.text("Fear Level\n" + "%" + str(round(fearPoint,1))+"\n") # printer.text("Surprise Level: \n" + str(round(surpriseValue,2))+"/100\n") # printer.text("Overall: \n" + str(round(fearPoint,2))+"/100\n") if fearPoint>80: