pyScanLib

An combination of Twain and SANE API

Requirements:

Functions:

Special Function:

Example:

    from includes.scannerLib import scanLib

    loadScanner = scanLib()
    scanners = loadScanner.getScanners()
    loadScanner.setScanner(scanners[0])

    loadScanner.setDPI(300)
    loadScanner.setScanArea(width=512,height=512) #(left,top,width,height)
    loadScanner.setPixelType("color") #bw/gray/color

    PIL = loadScanner.scan()
    PIL.save("scanImage.jpg")
    loadScanner.closeScanner() # unselect selected scanner in setScanners()
    loadScanner.close() # Destory whole class

Detail Example:

Check exampleUsage.py in repo

Notice:

License:

pyScanLib uses BSD 2-Clause License.