0

I'm trying use zbar on RPI3 but i have a problem. I dont have ImageScanner, Image... module.

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

I tried to install it from pip, official repository, some fork, but nothing work.

https://pastebin.com/ajbWdSct

how can i access image modul?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
gyb001
  • 19
  • 1
  • 4

1 Answers1

0

To list module content try to type:

import zbar
dir(zbar)

See example are in source https://github.com/npinchot/zbar/blob/master/examples/read_one.py

themadmax
  • 2,344
  • 1
  • 31
  • 36
  • >>> dir(zbar) ['Scanner', 'Symbol', 'ZBAR_CONFIGS', 'ZBAR_SYMBOLS', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'zbar'] – gyb001 Dec 18 '17 at 14:06
  • The example isn't working. AttributeError: 'module' object has no attribute 'Processor' – gyb001 Dec 18 '17 at 14:15