Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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)
        ]
    )
]
Comment

PREVIOUS NEXT
Code Example
Python :: pandas trim string of all cells 
Python :: get second min no from array in python 
Python :: qt designer python 
Python :: access cmd with python 
Python :: get all commands discord.py 
Python :: how to take first half of list python 
Python :: mountain array leetcode 
Python :: how to put my graph in tkinter interface 
Python :: list in python 3 
Python :: call shell script from python 
Python :: Examples of os.makedirs() method 
Python :: model.predict knn 
Python :: creating python classes 
Python :: python get bits from byte 
Python :: python selenium click on agree button 
Python :: items of list 
Python :: NumPy flipud Syntax 
Python :: networkx node attribute from a dataframe 
Python :: python using end keyword 
Python :: seaborn factorplot python 
Python :: numpy unique axis 
Python :: loading a webpage with aiohttp 
Python :: pandas get tuples from dataframe 
Python :: python list include 
Python :: change every element of list python with map 
Python :: conda create new env 
Python :: pahtlib join path 
Python :: get table wikipedia 
Python :: protected class python 
Python :: apps to help in coding python exmas 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =