opencv-mobile icon indicating copy to clipboard operation
opencv-mobile copied to clipboard

QRCode

Open niqt opened this issue 2 years ago • 3 comments

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

niqt avatar Aug 17 '23 16:08 niqt

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

nihui avatar Aug 25 '23 02:08 nihui

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

niqt avatar Aug 25 '23 22:08 niqt

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.

https://github.com/opencv/opencv/issues/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

sunmin89 avatar Dec 12 '23 09:12 sunmin89