找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 2003|回复: 0

[求助] 求助,安装了Pyinsane不知道怎么调用,希望大佬给个简单实例

1

主题

1

帖子

1

积分

贫民

积分
1
y5656 发表于 2018-12-24 15:11:39 | 显示全部楼层 |阅读模式
import pyinsane.abstract as pyinsane
device = pyinsane.get_devices()[0]
device.opti**['resolution'].value = 1200
device.opti**['mode'].value = 'Color'
device.opti**['source'].value = 'Transparency Unit'
# Beware: Some scanner have "Lineart" or "Gray" as default mode
device.opti**['mode'].value = 'Color'
scan_instance = device.scan(multiple=False)
try:
    while True:
        scan_instance.read()
except EOFError:
    pass
image = scan_instance.get_img()这个会提示AssertionError
回复

使用道具 举报

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

本版积分规则

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