Python中文
首页
教程
问答
标签
搜索
登录
注册
Python zxing decode返回空白d
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我试图用pythonzxing解码qr或aztec代码数据。每次我在pythonshell中得到空数据时没有任何错误。我做错了什么?在</p> <pre><code>import zxing image = "aztec.png" rd = zxing.BarCodeReader() rs = rd.decode(image) print rs.data print rs </code></pre> <p>输出:</p> ^{pr2}$ <p>Python版本。2.7.11(窗户)</p> <p>p.S。 当我从cmd运行脚本时,我收到一条消息:</p> <blockquote> <p>Exception in thread "main" java.lang.NoClassDefFoundError: com/google/zxing/client/j2se/CommandLineRunner</p> </blockquote>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>假设Zxing的mvn安装是正确的,那么在创建reader实例时添加Zxing文件夹的路径(在本例中为“rd”)</p> <pre><code>rd = zxing.BarCodeReader("/path/to/zxing") </code></pre> <p>仅供参考:我在Raspbian上运行它,而不是windows,但是有相同的错误。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在乒乓球比赛中预测球的轨迹,对于AI球拍预测?
2 回答
如何在乒乓球游戏中阻止球
3 回答
如何在乘法和模中不乘空间?
6 回答
如何在乘法和除以2个不同的数字之间进行交换?
10 回答
如何在也是数据一部分的单个字符上拆分大字符串
2 回答
如何在乾草堆中找到針,有更好的解決方案嗎?
6 回答
如何在事件wxWidgets中传递自定义数据
5 回答
如何在事件中使用lambda i=i?
6 回答
如何在事件中心只接收最近的数据
7 回答
如何在事件发生之前保持云函数运行?
7 回答
如何在事件发生后使页面重定向到同一页面
9 回答
如何在事件回调之间保持python生成器的状态
1 回答
如何在事件处理程序(pythonsocket、sphinx)中保留docstring
5 回答
如何在事件处理程序中更改wxRichTextCtrl的光标位置?
9 回答
如何在事件处理程序中访问外部对象?
9 回答
如何在事件循环中将协程打包为正常函数?
9 回答
如何在事件循环之外运行协同程序?
3 回答
如何在事件循环结束时为并发未来的所有线程调用类方法?
1 回答
如何在事件文件中只保留一份摘要?
1 回答
如何在事件模板中添加事件
3 回答