Skip to content

Unable to get result from QRCodeDetector.detectAndDecode() when encoded QR Code data is long #17152

@tweenietomatoes

Description

@tweenietomatoes

OpenCV 4.3 / 4.2
Windows 10 64 Bit
Python 3.8.2 / GoCV

I can't get result from QRCodeDetector.detectAndDecode() in certain circumstances.
I am basically getting realtime image from camera and decoding it.
When i try with encoded short data it's working OK. But when i encode longer data such as

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJldCIsImVtYWlsIjoiZW1yZUB0ZW1lbGt1cmFuLmlzdCIsImlhdCI6MTU4Nzc3ODg4NCwiZXhwIjoxNTg3ODY1Mjg0fQ.d3sIn5AQzTInxtLWBHYbCu-7KqjJfSQoMCWjH6SCw9o"

Program runs very slow when it detects code and i am unable to get any result. Looks like something related with memory allocation.

Note: I can get result if i change qr code's error correction level to lower values. But it still runs slow when it detects QR and going out of memory sometimes. I am running on 16 GB DDR4 machine.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions