技術系のよくある質問を網羅、作業上で必要となる文書資料を提供中
ドキュメントセンター テックナレッジ

HOME > サーバ > FreeBSD 

sane install (USB-スキャナ-gnome-freebsd) 

[ 一覧へ戻る ]

 FreeBSD上のgnomeでスキャナを利用するには、SANE(Scanner Access Now Easy)を使う。SANEは、TWAINに似た仕組みで、frontends、backendsに分かれていて、スキャナサーバといったような使い方も想定されているのがTWAINと違う。SANEはportsにある。

インストール

cd /usr/ports/graphics/sane-backends/
make install
cd /usr/ports/graphics/sane-frontends/
make install

インストール時に選ぶオプション

Options for sane-backends 1.0.18
[X] USB USB support
[X] NLS NLS support
[ ] GPHOTO2 gPhoto2 support

Options for sane-frontends 1.0.14_2
[ ] GTK1 GTK1 support (Default is GTK2)
[X] GIMP also build xscanimage as a GIMP plug-in

USBでの利用

 USBスキャナの準備を整えて、端末へUSBケーブルにて接続すると、dmesgコマンドで確認できる。本文書の作成では、EPSON GT-7200Uを使っているが、特に設定を行うことなく使えた。

dmesg
ugen0: EPSON EPSON Scanner 010F, rev 1.10/1.00, addr 2

スキャナの認識状態の例

未接続
# scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

接続・認識
# scanimage -L
device `plustek:libusb:/dev/usb1:/dev/ugen0' is a Epson Perfection 1250/Photo USB flatbed scanner

スキャナをgimpから利用

 自身のホームディレクトリにある、gimpディレクトリを確認して、プラグインとしてリンクを追加する。gimpを再起動すると、「ファイル」メニューの「取り込み」に、「xscanimage」という項目が出てくる。「device dialog...」を選んでも良いし、他の認識名を選んでも良い。xscanimageを実行したときと同じ画面が表示される。

# ln -sf /usr/local/bin/xscanimage ~/.gimp-2.2/plug-ins/xscanimage

公開日: 2007年01月06日   / 文書番号: 007404 / カテゴリ: FreeBSD / 閲覧数: 996 




ドキュメントセンター テックナレッジ
Copyright 1997-2008 generationact. all rights reserved.