Skip to content

Unable to do Duplex Scanning #70

Description

@kamidehlvi

Hi, I am trying to do duplex scanning using Python-sane but unable to do duplex scanning please help me ... regards

import scanPython
from PIL import  Image

mode = 'grey'

var = scanPython.init()
print("sane version ", var)
devices = scanPython.get_devices()
print('Available devices:', devices)

dev = scanPython.open(devices[0][0])
dev.__setattr__(2,'ADF Duplex') 
print("Current Source",dev.__getattr__(2))
dev.set_mode =mode
dev.resolution = 200
dev.start()
iterator = dev.multi_scan()
progress = True

while progress:
    try:
        image = iterator.next()
 except:
        progress = False
        break
#dev.cancel()

dev.close()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions