python-imaging-sane

B

barronmo

I'm trying to get my application to scan, create a .pdf, and then save
it in a patient's folder. I found python-imaging-sane but I can't get
things to work correctly. Here is what's happening at the command
prompt:

import sane
sane.init()
(16777235, 1, 0, 19)
print sane.get_devices()
[('canondr:libusb:001:002', 'Canon', 'P-150', 'sheetfed scanner')]
s = sane.open(sane.get_devices()[0][0])
s.start()
i = s.snap()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/sane.py", line 243, in snap
self.dev.snap( im.im.id, no_cancel )
_sane.error: Operation was cancelled

Ultimately I would like to get it to scan duplex and do multipage
docs. Thanks for any help.

Mike Barron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top