Horje
decode a qrcode inpython Code Example
decode a qrcode inpython
>>> from pyzbar.pyzbar import decode
>>> from PIL import Image
>>> decode(Image.open('pyzbar/tests/code128.png'))
[
    Decoded(
        data=b'Foramenifera', type='CODE128',
        rect=Rect(left=37, top=550, width=324, height=76),
        polygon=[
            Point(x=37, y=551), Point(x=37, y=625), Point(x=361, y=626),
            Point(x=361, y=550)
        ]
    )
    Decoded(
        data=b'Rana temporaria', type='CODE128',
        rect=Rect(left=4, top=0, width=390, height=76),
        polygon=[
            Point(x=4, y=1), Point(x=4, y=75), Point(x=394, y=76),
            Point(x=394, y=0)
        ]
    )
]
Source: pypi.org




Python

Related
how do you make plot show with matplotlib ion method Code Example how do you make plot show with matplotlib ion method Code Example
No module named 'aiohttp_socks' Code Example No module named 'aiohttp_socks' Code Example
variable types in python Code Example variable types in python Code Example
name 'requests' is not defined python Code Example name 'requests' is not defined python Code Example
send serial commands in python Code Example send serial commands in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7