Unisu SDK
1、确保 HttpServerServiced 服务已开启:$ systemctl status HttpServer.service
2、jpeg返回image/jpeg类型数据; tiff返回image/tiff类型数据; pdf返回application/pdf类型数据;ofd和docx返回二进制数据
3、scan_and_getimage:扫描并获取图像数据,具体请参考文档说明和js代码;scan_to_tmp_path:只扫描文件到系统/tmp目录,名称以时间戳命名。
4、扫描url(示例):http://127.0.0.1:3883/scan?format=.pdf&src=Automatic Document Feeder&mode=Color&dpi=300&doctype=A4&pages=0&device=pantum_ds230:libusb:003:006
scan接口可以不传参数,不传的参数将使用默认值,如format会使用".ofd",mode是"Color",dpi是300,doctype是"A4",source是"Automatic Document Feeder",device将使用第一个搜索到的设备
如果需要指定IP地址进行网络扫描,不填充device,填充IP地址和机型:如ip=10.10.0.40&model=M7100DN
5、上传url(示例):http://127.0.0.1:3883/getimage?docid=1