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

QRCode #55

Open
niqt opened this issue Aug 17, 2023 · 3 comments
Open

QRCode #55

niqt opened this issue Aug 17, 2023 · 3 comments

Comments

@niqt
Copy link

niqt commented Aug 17, 2023

Why is not included the module to decode the QRCode? It's classic mobile thing

@nihui
Copy link
Owner

nihui commented Aug 25, 2023

there is ncnn port here, and ncnn inference library is much faster than opencv on mobile
https://github.com/EdVince/QRCode-NCNN

@niqt
Copy link
Author

niqt commented Aug 25, 2023

Why if i enable -DBUILD_opencv_objdetect=ON this module is not built?

@sunmin89
Copy link

Why if i enable -DBUILD_opencv_objdetect=ON this module is not built?

One can refer to opencv-4.8.1/modules/objdetect/CMakeLists.txt

It says module opencv_objdetect depends on opencv_calib3d while opencv_calib3d itself depends on opencv_flann.

Besides, some objdetecting functions are introduced into opencv_dnn since opencv 4.5.x, you should enable opencv_dnn, if you need those dnn based objdetecting features.

opencv/opencv#22544

Some simple modifications should be enough to enable opencv_objdetect .

diff --git a/opencv4_cmake_options.txt b/opencv4_cmake_options.txt
index ec6783a..ec8beec 100644
--- a/opencv4_cmake_options.txt
+++ b/opencv4_cmake_options.txt
@@ -82,8 +82,8 @@
 -DBUILD_opencv_dnn=OFF
 -DBUILD_opencv_imgcodecs=OFF
 -DBUILD_opencv_videoio=OFF
--DBUILD_opencv_calib3d=OFF
--DBUILD_opencv_flann=OFF
--DBUILD_opencv_objdetect=OFF
+-DBUILD_opencv_calib3d=ON
+-DBUILD_opencv_flann=ON
+-DBUILD_opencv_objdetect=ON

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

3 participants