Skip to content

Unable to decode QR data #124

@MayankFawkes

Description

@MayankFawkes
from PIL import Image
from pyzbar.pyzbar import ZBarSymbol, decode
img = Image.open('unknown.png')
output = decode(img, symbols=[ZBarSymbol.QRCODE])
print(output)

unknown

output in code:

[Decoded(data=b'PK\x03\x04\x14', type='QRCODE', rect=Rect(left=12, top=13, width=604, height=605), polygon=[Point(x=12, y=14), Point(x=12, y=618), Point(x=614, y=616), Point(x=616, y=13)])]

but this is incomplete data

when i am trying to decode on https://zxing.org/w/decode.jspx

image

this is what i want in bytes in python. but code seems cant parse the all data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions