Screen QR code scanning utility for Windows.
Driven by two engines, QRUtil now has the following two modes:
Under this mode, QRUtil supports detecting multiple QR codes on the screen simultaneously.
Using a strong and fast engine recently open-sourced by Tencent's team WeChatCV, QRUtil supports detecting a manual selected range, as a supplement to auto-detection.
Please refer to the release page.
Color scheme and key bindings can be configured via a json formatted config file:
./QRUtil [config_filename] (default: ./config.json).
Example
Install Dependencies
- opencv-4.2.0-vc15
- zbar-0.10-windows-installer
- jsoncpp
- Build wechat_qrcode extra module for opencv
Reference build command for wechat_qrcode:
proxychains cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIST="wechat_qrcode" -DOPENCV_EXTRA_MODULES_PATH=PATH_TO\opencv_contrib\modules PATH_TO_OPENCV/sources
cmake --build . --config Release
Set Environment Variables
- OPENCV_DIR to ...\build\x64\vc15
- ZBAR_DIR to the installation directory
Copy x64 libs from ZBarWin64 to <ZBAR_DIR>/lib
.
Copy wechat_qrcode.hpp
(from source) to $(OPENCV_DIR)/../../include
.
Copy opencv_wechat_qrcode420d.lib
,opencv_wechat_qrcode420.lib
(built) to $(OPENCV_DIR)/lib
.
Build
Open Proj.sln
with Visual Studio 2019 and go building.
- (Auto-detect mode) Multi-thread support. The scanner will keep scanning in the background using different parameters, new results will be pushed to the UI.
- (Manual-detect mode) Support decoding on a manually selected range using wechat_qrcode.
Special thanks to the following open-source projects:
- OpenCV and wechat_qrcode (Apache License 2.0)
- ZBar (GPL v2)
- odashi/encoding (MIT)