Questions tagged [sane]

SANE is an open source API that provides access to raster image scanner hardware, written for Unix and Linux.

SANE stands for "Scanner Access Now Easy" and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.).

The current source code is written for UNIX (including GNU/Linux) and is available under the GNU General Public License (the SANE API is available to proprietary applications and backends as well, however).

More information may be found at the sane web site.

35 questions
3
votes
2 answers

Is it possible to use the SANE backend on windows platforms?

I have to develop a scanning application for the Canon 9000F, but I'm having troubles with WIA and TWAIN. I've read on the SANE project's home page that this specific scanner works pretty well with their technology, so I would be interested if it is…
xsl
  • 17,116
  • 18
  • 71
  • 112
2
votes
1 answer

scanbd has 30 seconds delay when running as service on Archlinux

I've set up sane/scanbd on an arm box (similar to raspberry pi) with Archlinux. The scanbd is configured to scan a page from the scanner when the scan button is pressed. Everything works fine when running scanbd directly from command line as scanbd…
ierdna
  • 5,753
  • 7
  • 50
  • 84
2
votes
0 answers

macOS Mojave – sane-backends ”libusb not available” EDIT: device is not configured

I have and old scanner compatible with sane-backends. I want to install the sane backends on my Mac (macOS 10.14 Mojave). The scanner is an USB one, so libusb library is required. What I have done: I have MacPorts, so I installed libusb and…
Umberto
  • 61
  • 4
2
votes
0 answers

"invalid argument" calling sane_open in Rust through FFI

I'm trying to set up a Rust FFI for libsane, the Linux scanning library. Executing the sane_open function returns the error code 4 indicating an invalid argument. I believe it has something to do with my parameter declaration. // If successful,…
Jan
  • 293
  • 1
  • 11
2
votes
1 answer

sane_control_option - can not set option

I am trying to make an application which works with a scanner on Linux (I am using sane-backends). Scanner works fine; I am getting an image using my app, BUT it is not A4 format. It has 1696*3743 resolution. I used sane_get_parametrs(), and got…
2
votes
0 answers

scanbd doesn't work unless I restart it from the command line

NAME "Raspbian GNU/Linux" VERSION_ID "7" VERSION "7 (wheezy)” Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux I’ve installed SANE and scanbd with a Canoscan LIDA 210. From Instructions Here I’ve put in an…
RightmireM
  • 2,381
  • 2
  • 24
  • 42
2
votes
2 answers

prepopulate MVC Models with IOC - an alternative to caching?

I'm considering strategies for a simple-minded CMS implementation for an ASP.NET MVC site. The simple-minded part is that I've abstracted the values used in various partial views, all of which are user controls that share identical CSS layouts. So…
Stato Machino
  • 1,120
  • 3
  • 13
  • 22
1
vote
1 answer

PIL SANE interface: where can I find it?

Apparently PIL includes a SANE (Scanner Access Now Easy) interface - I'm looking at code right now that does import sane where sane is provided by PIL. I've installed PIL under both OS X and Windows, but "import sane" doesn't work for me. I did a…
Parand
  • 102,950
  • 48
  • 151
  • 186
1
vote
0 answers

How to scan using SANE from docker container?

I have an old wifi printer/scanner HP Photosmart B209a. I can print and scan from the host machine, but I would like to print and scan from the Docker container. Printing is working: the image has CUPS installed, I copy /etc/cups/printers.conf from…
1
vote
0 answers

Unable to get return value from with statement?

I am trying to access a network Scanner to scan documents through this code. This is the library and code I am using it import sane sane.init() class saneScanner(object): def __init__(self, URI): self.URI = URI def __enter__(self): …
1
vote
0 answers

scanbd on Raspberry pi using ScanSnap ix500

I have not been able to successfully use this. When I run scanbd -f I get the following errors. scanbd: SANE_CONFIG_DIR not set scanbd: Not Primary Owner (-1) scanbd: Name Eror (Connection ":1.189" is not allowed to own the service…
JuanGunner
  • 13
  • 5
1
vote
0 answers

How to update SANE in raspberry to new version?

In the latest raspbian, after entering "sudo apt-get install sane", the version sane 1.0.25 is installed. I need to have version 1.0.27, which already supports my scanner. How can I install the latest version?
Piot
  • 11
  • 3
1
vote
0 answers

scanimage, left and top padding when using selection, fine if whole page

I have this troubleshoot when scanning with my HP Photosmart 5520 using scanimage (same problem with xsane though) : If I scan with no selection area, then it's fine, I get everything. But when I set an area (via -x -y for example), there are 5 to 7…
hl037_
  • 3,520
  • 1
  • 27
  • 58
1
vote
0 answers

Watching a mapped network drive with nodejs

I'm trying to watch a mapped network drive with node.js using sane package. I'm in ubuntu. I watch the mapped network drive and it only emits events if I make any change in the mounted dir but NOT if the change is made locally in the network…
vivajam
  • 21
  • 1
1
vote
1 answer

Using Python's ctypes to pass/read a parameter declared as "struct_name *** param_name"?

I am trying to use Python's ctypes library to access some methods in the scanning library SANE. This is my first experience with ctypes and the first time I have had to deal with C datatypes in over a year so there is a fair learning curve here,…
bouvard
  • 3,864
  • 25
  • 29
1
2 3