From 929e520b4acef1a628076d6c58a4a9efe2fe6e90 Mon Sep 17 00:00:00 2001 From: Youraglaia Date: Tue, 22 Nov 2022 16:10:50 +0100 Subject: [PATCH] made major changes --- cutting.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cutting.py b/cutting.py index 400aec6..723e5f6 100644 --- a/cutting.py +++ b/cutting.py @@ -1 +1,12 @@ -print("starting the cutting process") \ No newline at end of file +import os +print("starting the cutting process") +os.system("tesseract image.png text.txt -l eng") +fantasyname = open("text.txt.txt" , "r") +fantasyname = fantasyname.readlines() +for line in fantasyname: + line = line.split(" ") + for l in line: + if l!="" or l != ['\n', '\r\n']: + print(l) + os.system("echo '"+l+"' > /dev/usb/lp0") +