Scanner Access Now Easy

From Wikipedia, the free encyclopedia
Jump to: navigation, search
SANE
The logo of the SANE project.
Stable release 1.0.24 / 30 September 2013; 10 months ago (2013-09-30)
Operating system Microsoft Windows, Linux, UNIX, OS/2
License GNU General Public License (GPL)
Website www.sane-project.org
XSane on Ubuntu (Linux)

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

The SANE API is public domain and its discussion and development is open to everybody. It is commonly used on Linux.

Development[edit]

SANE differs from TWAIN in that it is cleanly separated into frontends (user programs) and backends (scanner drivers). Whereas a TWAIN driver handles the user interface as well as communications with the scanner hardware, a SANE driver only provides an interface with the hardware and describes a number of "options" which drive each scan. These options specify parameters such as the resolution of the scan, the scan area, colour model, etc. Each option has a name, and information about its type, units, and range or possible values (e.g. enumerated list). By convention there are several "well known" options that frontends can supply using convenient GUI interaction e.g. the scan area options can be set by dragging a rectangular outline over a preview image. Other options can be presented using GUI elements appropriate to their type e.g. sliders, drop-down lists, etc.

One consequence of this separation is that network scanning is easily implemented with no special handling in either the frontends or backends. On a host with a scanner, the saned daemon runs and handles network requests. On client machines a "net" backend (driver) connects to the remote host to fetch the scanner options, and perform previews and scans. The saned daemon acts as a frontend locally, but simply passes requests and data between the network connections and the local scanner. Similarly, the "net" backend passes requests and data between the local frontend and the remote host.

Various types of unsupervised batch scanning are also possible with a minimum of support needed in the backend (driver). Many scanners support the attachment of document feeders which allow a large number of sheets of paper to be automatically scanned in succession. Using the SANE API, the frontend simply has to "play back" the same set of options for each scan, driving the document feed in between scans to load the next sheet of paper. The frontend only has to obtain the set of options from the user once.

Graphical user interfaces[edit]

Several user interfaces have been written to combine SANE with an easy user method of controlling it.

XSane[edit]

XSane is a graphical frontend for SANE that is written and maintained by Oliver Rauch. It is available for Microsoft Windows, Linux, UNIX, and OS/2 and is licenced under the GNU General Public License (GPL).[1] The Windows version only allows a Windows computer to access a scanner that is attached to a Unix, OS/2 or Mac-OS-X computer, not to the local Windows computer.[2]

Simple Scan[edit]

Simple Scan 2.32.0

Simple Scan is a simplified GUI using SANE that is intended to be easier to use and better integrate into the GNOME desktop than XSane. It was initially written for Ubuntu and is maintained by Robert Ancell of Canonical Ltd. for Linux. Simple Scan was first fielded as part of Ubuntu 10.04 Lucid Lynx and is also used in Lubuntu and Xubuntu.[3][4][5][6][7]

gscan2pdf[edit]

gscan2pdf (Gnome Scan To PDF[citation needed]) is an interface for scanning documents to PDF on the GNOME desktop that uses SANE to communicate with the scanner. It is available under the GPL. It includes common editing tools, e.g. for rotating or cropping pages. It is also able to perform OCR using several optional OCR tools and save a searchable PDF. PDF files can be further downsampled upon saving.[8]

See also[edit]

References[edit]

  1. ^ Rauch, Oliver (February 2009). "XSane - graphical scanning frontend". Retrieved 4 June 2010. 
  2. ^ Rauch, Oliver (undated). "XSane WIN32 version". Retrieved 24 October 2010. 
  3. ^ Ancell, Robert (May 2010). "Simple Scan". Retrieved 4 June 2010. 
  4. ^ Canonical Ltd (2012). "Simple Scan Development Team". Retrieved 8 March 2012. 
  5. ^ Canonical Ltd (2012). "Packages by project series". Retrieved 8 March 2012. 
  6. ^ UbuntuUpdates.org (April 2010). "Package simple-scan". Retrieved 4 June 2010. 
  7. ^ OMG! Ubuntu! (December 2009). "Lucid to Get Scanning Tool "Simple Scan"". Retrieved 4 June 2010. 
  8. ^ gscan2pdf (undated). "gscan2pdf - A GUI to produce PDFs or DjVus from scanned documents". Retrieved 27 September 2011. 

External links[edit]