opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

use wechat qrcode get Assertion failed

Open AlienWorldZ opened this issue 2 years ago • 1 comments

image

I use cmake OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules/ and got OpenCV_VERSION 4.8.0。

ENV: ISO C++14 WIN11 X64 VS2019

if i debug: wechat_qrcode::WeChatQRCode detector{ modelDir + "detect.prototxt", modelDir + "detect.caffemodel", modelDir + "sr.prototxt", modelDir + "sr.caffemodel" }; And I got information below: Standard exception: OpenCV(4.8.0) D:\MySoftwares\opencv\opencv_contrib-4.x\modules\wechat_qrcode\src\wechat_qrcode.cpp:57: error: (-215:Assertion failed) utils::fs::exists(detector_prototxt_path) in function 'cv::wechat_qrcode::WeChatQRCode::WeChatQRCode'

AlienWorldZ avatar Oct 09 '23 01:10 AlienWorldZ

utils::fs::exists(detector_prototxt_path)

Missing file or wrong path.

Usage questions should go to Users OpenCV Q/A forum: https://forum.opencv.org/

opencv-alalek avatar Oct 09 '23 11:10 opencv-alalek