Connecting to a scanner with go.

agolangf · · 641 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hey fellow go lovers! I am interested in finding a library (i assume it would be in C or another low level language) to connect to scanner hardware devices in order to retrieve images of them. Does anyone know of something I can use for this?</p> <p>Thanks!</p> <hr/>**评论:**<br/><br/>egonelbre: <pre><p>What platforms/devices do you need to support? What features do you need to support?</p> <p>There are <a href="http://www.dynamsoft.com/blog/document-imaging/document-scanning-twain-wia-isis-sane/" rel="nofollow">several protocols</a>. However some drivers/devices have bugs in their implementation of the protocols. Search for a particular protocol and you&#39;ll find <a href="https://github.com/search?l=C%2B%2B&amp;q=twain&amp;ref=searchresults&amp;type=Repositories&amp;utf8=%E2%9C%93" rel="nofollow">some libs to use</a>.</p> <p>tl;dr; if your scanner supports scanning into a folder, just use that. :)</p></pre>jobenfre: <pre><p>Honestly this is more of a pet project and I am interested in the actual connection of my code to the hardware. I&#39;ve been going back and forth on go/rust/c++ on the language and want to decide what&#39;s best.</p></pre>egonelbre: <pre><p>I&#39;m not sure what the project should do, so I cannot recommend anything particular. The effort to get TWAIN/WIA/SANE working will be pretty much the same in them, so it won&#39;t make a big dent in the choice. The only exception is that in C you can find existing libraries and examples.</p></pre>jobenfre: <pre><p>Ok cool. Thanks verry much!</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

641 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传