python-imaging-sane

Discussion in 'Python' started by barronmo, Oct 20, 2010.

  1. barronmo

    barronmo Guest

    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
     
    barronmo, Oct 20, 2010
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Jansen
    Replies:
    0
    Views:
    394
    Jack Jansen
    Sep 16, 2004
  2. GMane Python

    python sane imaging

    GMane Python, Dec 28, 2004, in forum: Python
    Replies:
    0
    Views:
    462
    GMane Python
    Dec 28, 2004
  3. Rene Pijlman
    Replies:
    1
    Views:
    548
    Claudio Grondi
    Feb 24, 2006
  4. derek
    Replies:
    3
    Views:
    504
  5. dwelch
    Replies:
    1
    Views:
    622
    Lonnie Princehouse
    Mar 29, 2006
  6. shane

    sane input

    shane, Oct 3, 2008, in forum: VHDL
    Replies:
    3
    Views:
    619
    Mike Treseler
    Oct 3, 2008
  7. Bruno Desthuilliers

    Python3: Sane way to deal with broken encodings

    Bruno Desthuilliers, Dec 6, 2009, in forum: Python
    Replies:
    4
    Views:
    1,202
    Martin v. Loewis
    Dec 8, 2009
  8. BCFD36
    Replies:
    29
    Views:
    817
    BCFD36
    Jan 13, 2012
Loading...