SANE を動作させるためにスキャナやカメラが必須ではないことに注意して下さい。
SANE ディストリビューションには、PNM (portable `anymap')ファイルを読むこと
によりスキャナをシミュレートする仮想ドライバが入っています。また、SANE は
Linux に限定されません。Linux Alpha, Linux x86, Linux m68k 以外にも AIX,
Digital Unix, FreeBSD, HP-UX, IRIX, NetBSD, SCO, Solaris, SunOS また OS/2
でも動作します。
SANE をインストールしたら下記のコマンドを入力してみましょう。
scanimage --list-devices
すると以下のように出力される筈です。
device `mustek:/dev/scanner' is a Mustek MFC-06000CZ flatbed scanner
device `pnm:0' is a Noname PNM file reader virtual device
device `pnm:1' is a Noname PNM file reader virtual device
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write PNM image data to
standard output.
-d, --device-name=DEVICE use a given scanner device
-h, --help display this help message and exit
-L, --list-devices show available scanner devices
-v, --verbose give even more status messages
-V, --version print version information
Options specific to device `pnm':
Source Selection:
--filename <\<>string> [/tmp/input.ppm]
The filename of the image to be loaded.
Image Enhancement:
--brightness -100...100% [0]
Controls the brightness of the acquired image.
--contrast -100...100% [0]
Controls the contrast of the acquired image.
--grayify[=(yes|no)] [no]
Load the image as grayscale.
--three-pass[=(yes|no)] [no]
Simulate a three-pass scanner by returning 3 separate frames.
For kicks, it returns green, then blue, then red.
--hand-scanner[=(yes|no)] [no]
Simulate a hand-scanner. Hand-scanners often do not know the
image height a priori. Instead, they return a height of -1.
Setting this option allows one to test whether a front end can
handle this correctly.
--default-enhancements
Set default values for enhancement controls
(brightness & contrast).
Figure 1: Scanimage Help Message For pnm:0 Pseudo-Device
図1: pnm:0 仮想デバイス用 scanimage のヘルプメッセージ