Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Come across a corner case when decoding image cause core dump #158

Open
zwsjink opened this issue Nov 20, 2023 · 0 comments
Open

Come across a corner case when decoding image cause core dump #158

zwsjink opened this issue Nov 20, 2023 · 0 comments

Comments

@zwsjink
Copy link

zwsjink commented Nov 20, 2023

The error shows like this :

python3: /build/zbar-m079fX/zbar-0.10+doc/zbar/qrcode/qrdectxt.c:368: qr_code_data_list_extract_text: Assertion `next > syms->datalen' failed.
Aborted (core dumped)

when I'm doing experiment with a bunch of pictures, some case failed constantly:

corner_case

The code goes like this:

from PIL import Image
from pyzbar.pyzbar import decode
image = Image.open(image_path)
image = image.convert('L')
qr_codes = decode(image)
print(len(qr_codes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant