-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
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()Metadata
Metadata
Assignees
Labels
No labels