@superkevingit
2016-03-15T15:13:46.000000Z
字数 1414
阅读 1570
翻译
自娱自乐,不好勿喷lalala~
Some steps are from George Smart's blog and SANE website.
install packages:
sudo apt-get install xsane sane libsane-extras sane-utils netpbm libusb
download the firmware:'Esfw41.bin'
copy firmware:
sudo cp -v Esfw41.bin /lib/firmware/esfw41.bin
modify the config file: add 'firmware /lib/firmware/esfw41.bin' to '/etc/sane.d/snapscan.conf'
find the scanner:
lsusb
sane-find-scanner
find the device:
scanimage -L
In my case(Epson Perfection 2480), it's 'snapscan:libusb:001:005'
test it:
sudo scanimage -d snapscan:libusb:001:005 --format pnm > out.pnm
convert it to jpg:
pnmtojpeg out.pnm > out.jpg
or
sudo scanimage -d snapscan:libusb:001:005 --mode color -x 215 -y 285 --resolution 600 |pnmtojpeg >out.jpg
done.
Epson package(iscan) looks not a must, neither does X. maybe xsane either
部分步骤摘自George Smart的博客和SANE网站。
安装包文件:
$ sudo apt-get install xsane sane libsane-extras sane-utils netpbm libusb
下载固件:'Esfw41.bin'
拷贝固件:
$ sudo cp -v Esfw41.bin /lib/firmware/esfw41.bin
修改配置文件:
将固件 /lib/firmware/esfw41.bin 覆盖到 /etc/sane.d/snapscan.conf
查看扫描仪是否连接:
$ lsusb
$ sane-find-scanner
查找设备:
$ scanimage -L
以我的设备为例(Epson Perfection 2480),设备名为‘snapscan:libusb:001:005’
测试一下:
$sudo scanimage -d snapscan:libusb:001:005 --format pnm > out.pnm
将输出文件转换为jpg格式:
$pnmtojpeg out.pnm > out.jpg
或者使用
$ sudo scanimage -d snapscan:libusb:001:005 --mode color -x 215 -y 285 --resolution 600 |pnmtojpeg >out.jpg
完成啦。
Epson package(iscan) looks not a must, neither does X. maybe xsane either
爱普生的程序包(iscan扫描器)似乎不是必须的,就如同X Window一样。或许xsane同样不是必要的。