覆盆子上的Zbar?

时间:2017-12-18 13:58:02

标签: python raspberry-pi3 zbar image-scanner

我尝试在RPI3上使用zbar,但我遇到了问题。我没有ImageScanner,Image ...模块。

import zbar
scanner = zbar.ImageScanner() 
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ImageScanner'

我试图从pip,官方存储库,一些fork安装它,但没有任何工作。

https://pastebin.com/ajbWdSct

我如何访问图像模块?

1 个答案:

答案 0 :(得分:0)

要列出模块内容,请尝试键入:

import zbar
dir(zbar)

请参阅示例源于源https://github.com/npinchot/zbar/blob/master/examples/read_one.py