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