made major changes

pull/1/head
Youraglaia 2 years ago
parent dcbdec70fd
commit 929e520b4a

@ -1 +1,12 @@
print("starting the cutting process")
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")

Loading…
Cancel
Save