Questions tagged [pyinsane]

Python implementation of the Sane API (using ctypes) and abstration layer.

Python implementation of the Sane API (using ctypes) and abstration layer.

https://github.com/jflesch/pyinsane

9 questions
7
votes
0 answers

Turn off specific USB port in windows with python

This is my first post, and I kind of have seen that the more specific the better, so I'll try to be super clear, and thanks in advance! What I want: I need to scan images from 2 or more scanners at the same time, these scanners are from the same…
1
vote
1 answer

Fatal Error C1083: Cannot open include file: 'atlbase.h' Pyinsane package

So after downloading the pyinsane 2.0.2 package from here and going in to the command window, I ran the setup.py build command. But everytime I run it, the fatal Error C1083 comes up: rawapi.cpp src/pyinsane2/wia/rawapi.cpp(8): fatal error C 1083:…
hccavs19
  • 165
  • 3
  • 9
1
vote
1 answer

Pyinsane example fails with "no module named src.abstract"

I am using the pyinsane module, and after running sudo pip install pyinsane, I believed that pyinsane was up and running. After testing this example with: python /home/administrator/Documents/git-repositories/ramrod/code/main.py…
Blue Ice
  • 7,888
  • 6
  • 32
  • 52
0
votes
2 answers

Scan small areas at maximum resolution (up to 6400dpi)

Problem statement: I want to scan an image at maximum scanner resolution (6400 dpi on a Epson V850). This is partly possible from the Epson scanner "professional mode" in the software, provided that the scan area is limited to 21000 x 30000…
MC-8
  • 65
  • 2
  • 9
0
votes
1 answer

Python libinsane to Executable file (Where to keep dll file after making exe)

I followed this link and this official git repo of libinsane, and setup libinsane in MSYS2 environment. I was even able to scan with scan.py file place in this folder. I have use of pretty much what scan.py is doing in my application. Can you guys…
0
votes
1 answer

Image Scanning in pyinsane 2 gives StopIteration error

I use Pyinsane 2 in Python - Django to scan a image via a network HP Printer. it detects the Device and all correctly. but while give scan_session = device.scan(multiple=False) it gives StopIteration error. def scan_process(request): …
Ramesh
  • 51
  • 7
0
votes
1 answer

16-bit color images with pyinsane

pyinsane's scan sessions return a list of 8-bit PIL images by default. This is true, even when the scan has been done in 16-bit mode (for instance using the transparency unit). Is there any way to get 16-bit images (I suppose PIL does not support…
retrography
  • 6,302
  • 3
  • 22
  • 32
0
votes
2 answers

Setting scan coordinates in device options on pyinsane

I use Sane's command line utility (scanimage) in order to scan films from the transparency unit of my scanner. Here is the command that I have been using with success: scanimage --device-name pixma:04A9190D \ --source 'Transparency Unit'…
retrography
  • 6,302
  • 3
  • 22
  • 32
0
votes
1 answer

python pyinsane script fails

I need some help with a python script. The script is an Example Script form the Pyinsane Module for Python. (Pyinsane https://github.com/jflesch/pyinsane) I want to write my own scanner script but to do that i should understand the example code or…
Lukas
  • 1
  • 2