Sane

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.).

SANE is a universal scanner interface. The value of such a universal interface is that it allows writing just one driver per image acquisition device rather than one driver for each device and application.

Software tag: 

Scannen via de commandline

Ga eerst na of de software en de scanner aanwezig zijn.

sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x08ff, product=0x168b) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

Ga na welke scanner wordt gebruikt.

scanimage -L

device
`hpaio:/net/Photosmart_C6200_series?zc=HP585A4D' is a Hewlett-Packard
Photosmart_C6200_series all-in-one

Maak een scan. Dit scant iets in grijstinten met een resolutie van 300 dpi.Het gescande oppervlak is 210 x 210 mm.
scanimage -p --mode Gray --resolution
300 -x 210 -y 210 > scan1.pnm


Gebruik  --format  om het bestand als TIFF weg te schrijven.   Het formaat kan zijn PNM of TIFF.  If --format niet wordt gebruik, dan  PNM. scanimage -p --mode Gray --resolution 300 -x 30 -y 30 --format=TIFF > scan4.tiffAndere formaten kunnen worden gebruikt door via Imagemagick converterenscanimage -p --mode Color --resolution 300 -x 30 -y 30 --format=TIFF | convert – scan.png

Zie ook:

  • man sane
  • man sane-find-scanner
  • man scanimage