找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 1642|回复: 7

armbian 如何使用扫描仪

[复制链接]
发表于 2022-10-28 06:44 | 显示全部楼层 |阅读模式
盒子刷了armbian ,扫描仪插盒子usb口,ssh输入命令scanimage -o /etc/111/01.jpeg可以扫描,在此路径找到01.jpeg发现图片分辨率太低,而且是黑白色。请问怎样设置扫描分辨率,并且扫描成彩色?以下是输入scanimage --help后的命令行
_ _ ___ ___ ____ _ _____

/ \ _ __ ___ | | ___ / _ \ / _ \| ___|| |___ / __ _

/ _ \ | '_ ` _ \| | / __| (_) | | | |___ \| | |_ \ / _` |

/ ___ \| | | | | | | \__ \\__, | |_| |___) | |___) | (_| |

/_/ \_\_| |_| |_|_| |___/ /_/ \___/|____/|_|____/ \__,_|

Welcome to Armbian 22.11.0-trunk Bullseye with Linux 5.15.73-flippy-78+o

System load: 2% Up time: 10:11

Memory usage: 10% of 1.91G IP: 172.17.0.1 192.168.2.5

CPU temp: 41°C Usage of /: 9% of 14G

RX today: 148.2 KiB

Last login: Fri Oct 28 06:31:44 2022 from 192.168.2.2

root@armbian:~# scanimage --help

Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write image data tostandard output.

Parameters are separated by a blank from single-character options (e.g.

-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).

-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)

--format=pnm|tiff|png|jpeg file format of output file

-i, --icc-profile=PROFILE include this ICC profile into TIFF file

-L, --list-devices show available scanner devices

-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output

can be specified: %d (device name), %v (vendor),

%m (model), %t (type), %i (index number), and

%n (newline)

-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' `out%d.tif'

`out%d.png' or `out%d.jpg' by default depending on --format

This option is incompatible with --output-file. --batch-start=# page number to start naming files with

--batch-count=# how many pages to scan in batch mode

--batch-increment=# increase page number in filename by #

--batch-double increment page number by two, same as

--batch-increment=2

--batch-print print image filenames to stdout

--batch-prompt ask for pressing a key before scanning a page

--accept-md5-only only accept authorization requests using md5

-p, --progress print progress messages

-o, --output-file=PATH save output to the given file instead of stdout.

This option is incompatible with --batch.

-n, --dont-scan only set options, don't actually scan

-T, --test test backend thoroughly

-A, --all-options list all available backend options

-h, --help display this help message and exit

-v, --verbose give even more status messages

-B, --buffer-size=# change input buffer size (in kB, default 32)

-V, --version print version information

Output format is not set, using pnm as a default.

Options specific to device `mustek_usb:libusb:001:002':

Scan Mode:

--mode Color|Gray|Lineart [Gray]

Selects the scan mode (e.g., lineart, monochrome, or color).

--resolution 50..1200dpi (in steps of 1) [50]

Sets the resolution of the scanned image.

--preview[=(yes|no)] [no]

Request a preview-quality scan.

Geometry:

-l 0..213.36mm [0]

Top-left x position of scan area.

-t 0..297.18mm [0]

Top-left y position of scan area.

-x 0..213.36mm [213.36]

Width of scan-area.

-y 0..297.18mm [297.18]

Height of scan-area.

Enhancement:

--threshold 0..255 [inactive]

Select minimum-brightness to get a white point

--custom-gamma[=(yes|no)] [no]

Determines whether a builtin or a custom gamma-table should be used.

--gamma-table 0..255,... [inactive]

Gamma-correction table. In color mode this option equally affects the

red, green, and blue channels simultaneously (i.e., it is an intensity

gamma table).

--red-gamma-table 0..255,... [inactive]

Gamma-correction table for the red band.

--green-gamma-table 0..255,... [inactive]

Gamma-correction table for the green band.

--blue-gamma-table 0..255,... [inactive]

Gamma-correction table for the blue band.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:

mustek_usb:libusb:001:002

root@armbian:~#


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2022-10-28 06:47 | 显示全部楼层
1,如何设置扫描分辨率
2,如何设置扫描成彩色
3,有没有办法不用命令行扫描,例如手机装个app扫描,并且设置扫描路径到本地网络下的nas路径
以上三个问题请大神指点,感谢
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2022-10-28 07:07 | 显示全部楼层
本帖最后由 jjit 于 2022-10-28 07:11 编辑

加这 2个参数试试,--mode 和 --resolution
scanimage --mode Color --resolution 1200dpi -o /etc/111/01.jpeg
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-10-28 10:06 | 显示全部楼层
jjit 发表于 2022-10-28 07:07
加这 2个参数试试,--mode 和 --resolution
scanimage --mode Color --resolution 1200dpi -o /etc/111/01 ...

大神果然厉害,这行命令成功了,彩色了,扫描分辨率1200dpi了
请问怎样实现不用ssg命令行扫描?例如手机装个app实现,再有就是怎样自动把扫描得到的图片自动挪到本地局域网的nas里。感谢感谢
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-10-28 10:38 | 显示全部楼层
jjit 发表于 2022-10-28 07:07
加这 2个参数试试,--mode 和 --resolution
scanimage --mode Color --resolution 1200dpi -o /etc/111/01 ...

大神果然厉害,这行命令成功了,彩色了,扫描分辨率1200dpi了
请问怎样实现不用ssh命令行扫描?例如手机装个app实现,再有就是怎样自动把扫描得到的图片自动挪到本地局域网的nas里。感谢感谢
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-10-28 21:53 | 显示全部楼层
顶上去,请知道解决办法的大神不辞吝教
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-10-29 22:49 | 显示全部楼层
哪位大佬知道,请告诉我
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-11-4 22:40 | 显示全部楼层
顶上去
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-6-18 16:09

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表