Also, thank you very much for the prompt response. I am loading Legacy onto another card and will try entering the code into that one. I do not yet have a QR code scanner or camera however. Perhaps this has to be connected for code to work?
Hello,
Thanks for the idea about this, tried and it works but too much delay so im thinking on configure the resolution for smoother and light task for my Raspi 3 B do you have insight for this matter?
In my experience, the two things that can improve performance in CV applications is to lower the resolution being fed into algorithms, ideally lowering what comes out of the camera itself to avoid an intermediary step, and turning off preview. If you can run your application “headless” where it isn’t having to render a preview, it can speed things up significantly.
Hello Tim,
thank you for making this guide, it helped me a lot. I was using this code to scan QR codes for a project last year and everything was working fine. Then I didn’t use the Pi for several months and now that I got back to it the same code is not working anymore. I think the problem might be related with the new updates that happened in the meantime (buster to bullseye) but I can’t be sure about this. However, even if I remain on a Buster system, the code won’t work: it is like the camera is not detected anymore and the result of the line “cap.read()” is always [False, None]. It has been now various days that I try to solve this problem without any results. I also tried to re-install the Buster operating system from scratch from the link provided in the beginning of this article but nothing changed.
Can you help me somehow? What is the correct way to access a camera nowadays?
Thank you in advance
I am getting the following error: failed to allocate memory, failed to create pipeline due to which img is null
also im unable to install pip3 install opencv-contrib-python==4.1.0.25
and sudo apt-get install libqt4-test python3-sip python3-pyqt5 libqtgui4 libjasper-dev libatlas-base-dev -y
Can anyone please help?
Unfortunately, OPEN-CV is not currently fully compatible with the newer Bullseye OS and this is likely contributing to this issue you are encountering.