Dot matrix printing: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 3: Line 3:
[[File:Oki-microline-320.png]]
[[File:Oki-microline-320.png]]


* '''owner''': XPUB
* '''status''': should work
* '''connect to the printer''': USB-A → centronics cable (you can find this one either in the office or XML, it's black)
* '''connect to the printer''': USB-A → centronics cable (you can find this one either in the office or XML, it's black)
* '''manual''': [[:File:45690101EE1 ML320 UG EN 128084.pdf]]
* '''manual''': [[:File:45690101EE1 ML320 UG EN 128084.pdf]]
==NEC PINWRITER P60==
* '''borrowed from''': Varia
* '''status''': unknown


==Examples==
==Examples==

Revision as of 12:04, 5 February 2025

OKI Microline 320

Oki-microline-320.png

NEC PINWRITER P60

  • borrowed from: Varia
  • status: unknown

Examples

Pruning Station with Irmak - The magic of scanner, OCR and dotmatrix printer (SI19)

Pruning Station in progress

See: How_do_We_Library_That???#Pruning_Station_with_Irmak-_The_magic_of_scanner,_OCR_and_dotmatrix_printer

Python script to scan a page from a book, apply OCR (optical character recognition) and print it on the dot matrix printer.

import os
print("starting the pruning process")
scanning = "sudo scanimage --resolution 300 --mode color -o image.png"
os.system(scanning)
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")