Page 1 of 1

Is it possible to make Luckfox Pico Max recognize QR codes with OpenCV4?

Posted: 2024-06-15 6:08
by cocoa
When I try to use the barcode module in OpenCV4, an error occurs in buildroot.
opencv4_qr_code_scanner_error.JPG
When I check the detailed settings after activating Opencv4 in Target packages -> Libraries -> Graphics, it is displayed as *** objdetect needs a glibc or musl toolchain ***.
buildroot_menuconfig_opencv4.JPG
I tried installing glibc, but buildroot is set to use a custom toolchain, so I don't know what to do.


How can I solve this problem?

Re: Is it possible to make Luckfox Pico Max recognize QR codes with OpenCV4?

Posted: 2024-06-17 6:23
by Crocodile
Hello, the version of OpenCV in Buildroot can only support partial functionalities (the luckfox-pico Buildroot compilation tool uses the uClibc version, which is incompatible with glibc). Any OpenCV features that depend on glibc cannot be enabled and will result in the error message "objdetect needs a glibc or musl toolchain." There is currently no reliable solution for enabling glibc support in luckfox-pico Buildroot.
If you need to implement QR code recognition, it is recommended to use the OpenCV-mobile + ZaBar approach. Please refer to relevant documentation for implementation details.

Re: Is it possible to make Luckfox Pico Max recognize QR codes with OpenCV4?

Posted: 2024-06-17 10:46
by cocoa
Crocodile, thank you for your reply.
It's a shame that we can't use all the features of OpenCV.
Although Rockchip support may be difficult, I hope to have all the features of OpenCV available in the near future.