Software:Scanner Access Now Easy

From HandWiki
SANE
ScannerAccessNowEasyLogo.png
XSane.png
XSane on Ubuntu (Linux)
Original author(s)David Mosberger-Tang
Andy Beck
Initial releaseNovember 27, 1996; 27 years ago (1996-11-27)[1]
Stable release
1.1.1 / 19 January 2022; 2 years ago (2022-01-19)
Operating systemMicrosoft Windows, Linux, UNIX, OS/2
Websitewww.sane-project.org

Scanner Access Now Easy (SANE) is an open-source 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. It is commonly used on Linux.

Architecture

SANE differs from TWAIN in that it is cleanly separated into "front ends" (user programs) and "back ends" (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 front ends 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 front ends or back ends. On a host with a scanner, the saned daemon runs and handles network requests. On client machines a "net" back end (driver) connects to the remote host to fetch the scanner options, and perform previews and scans. The saned daemon acts as a front end locally, but simply passes requests and data between the network connections and the local scanner. Similarly, the "net" back end passes requests and data between the local front end and the remote host.

Various types of unsupervised batch scanning are also possible with a minimum of support needed in the back end (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 front end 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 front end only has to obtain the set of options from the user once.

Graphical user interfaces

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

gscan2pdf

gscan2pdf 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.[2]

Simple Scan

Simple Scan (also called GNOME Document Scanner)

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 (until Lubuntu 18.04 LTS) and Xubuntu. It is now part of the GNOME project.[3][4][5][6][7][8]

Skanlite

SkanLite

Skanlite is a simple image scanning application, based on the KSane backend. Kåre Särs is the lead developer.[9] In KDE 4 Skanlite replaced Kooka of KDE 3 as default KDE scanning application.[10]

Skanlite is based on libksane, an interface provided by KDE for SANE libraries to control flatbed scanners.[11] It also works with networked scanners.[12]

SwingSane

SwingSane is a cross-platform, Java front end for SANE, written and maintained by Roland Quast. It is available for Microsoft Windows, Linux, Mac OS X and is licensed under the Apache 2.0 License.[13] The source code for the project can also be adapted for use with an existing Swing application.[14]

XSane

XSane is a graphical front end for SANE written by Oliver Rauch. It is available for Microsoft Windows, Linux, UNIX, and OS/2 and is licensed under the GNU General Public License (GPL).[15] The Windows version only allows a Windows computer to access a scanner that is attached to a Unix, OS/2 or Mac OS X network computer, but not generally to the local Windows computer. Only the "complete" sane-back-ends versions will possibly work with some scanner models connected locally.[16]

See also

References

  1. History of SANE, 2001-11-20, sane-devel@lists.alioth.debian.org Mailing list, "The first entry in ChangeLog is from 1996-11-16. The first SANE standard I know is version 0.2 from 1996-11-17. SANE 0.1 seem to have been released around 1996-11-27. The first mail on sane-devel is from 1996-12-09."
  2. gscan2pdf (n.d.). "gscan2pdf - A GUI to produce PDFs or DjVus from scanned documents". http://gscan2pdf.sourceforge.net/. 
  3. Ancell, Robert (May 2010). "Simple Scan". https://launchpad.net/simple-scan. 
  4. Canonical Ltd. (2012). "Simple Scan Development Team". https://launchpad.net/~simple-scan-team. 
  5. Canonical Ltd. (2012). "Packages by project series". https://launchpad.net/simple-scan/+packages. 
  6. UbuntuUpdates.org (April 2010). "Package simple-scan". http://www.ubuntuupdates.org/packages/show/167219. 
  7. OMG! Ubuntu! (December 2009). "Lucid to Get Scanning Tool "Simple Scan"". http://www.omgubuntu.co.uk/2009/12/lucid-to-get-new-scanning-tool-%E2%80%98simple-scan%E2%80%99/. 
  8. GNOME (21 March 2020). "Document Scanner". gitlab.gnome.org. https://gitlab.gnome.org/GNOME/simple-scan. 
  9. Skanlite, Kde.org, http://www.kde.org/applications/graphics/skanlite/, retrieved 2012-08-23 
  10. Kooka, Userbase.kde.org, 2012-06-10, http://userbase.kde.org/Kooka, retrieved 2012-08-23 
  11. Skanlite handbook, Docs.kde.org, 2011-11-29, http://docs.kde.org/development/en/extragear-graphics/skanlite/index.html, retrieved 2012-08-23 
  12. Skanlite, Docs.kde.org, 2011-11-29, http://docs.kde.org/development/en/extragear-graphics/skanlite, retrieved 2012-08-23 
  13. Quast, Roland (February 2015). "SwingSane - graphical scanning frontend". http://swingsane.com/. 
  14. Quast, Roland (n.d.). "SwingSane project files". https://github.com/rquast/swingsane. 
  15. Rauch, Oliver (February 2009). "XSane - graphical scanning frontend". https://gitlab.com/sane-project/frontend/xsane. 
  16. Rauch, Oliver. "XSane WIN32 version". http://www.xsane.org/xsane-win32.html. 

External links