A plug and play wechat QRcode opencv_contrib module
- modify the OpenCV_DIR if you want to use opencv as 3rdparty
set(OpenCV_DIR "/home/lyxichigoichie/3rdparty/opencv3/build") #directory of OpenCVConfig.cmake
- build and run
git clone https://github.com/lyxichigoichie/Plug_and_Play_wechatQRcode_module.git
mkdir build
cd build
cmake ..
make
./main
-
clone repo and copy the
wechat_qrcode
folder to your project folder as a subdirectorygit clone https://github.com/lyxichigoichie/Plug_and_Play_wechatQRcode_module.git cp wechat_qrcode {your_folder}
-
add the following code to your
CMakeLists.txt
# set(OpenCV_DIR "/home/lyxichigoichie/3rdparty/opencv3/build") #directory of OpenCVConfig.cmake find_package(OpenCV REQUIRED QUIET) add_subdirectory(wechat_qrcode) # include directories include_directories( wechat_qrcode/include )
-
link the library
libwechat_qrcode.so
to your executable programtarget_link_libraries(main ${OpenCV_LIBS} wechat_qrcode)
-
build and run