made major changes
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…
Reference in New Issue