Incorrect documentation for WeChatQRCode module
Author: Ale0x78Created Aug 3, 2026Updated Aug 3, 2026
The WeChat QR code detection documentation (here) lists the constructor signature as
cv::wechat_qrcode::[WeChatQRCode](https://docs.opencv.org/5.0/extra_modules/classcv_1_1wechat__qrcode_1_1WeChatQRCode.html)::[WeChatQRCode](https://docs.opencv.org/5.0/extra_modules/classcv_1_1wechat__qrcode_1_1WeChatQRCode.html)(
const std::string & detector_prototxt_path = “”,
const std::string & detector_caffe_model_path = “”,
const std::string & super_resolution_prototxt_path = “”,
const std::string & super_resolution_caffe_model_path = “” )However, in 5.0, the method has been changes to only take in two ONNX files (here)
/**
* @brief Initialize the WeChatQRCode.
* It includes two CNN-based models in ONNX format:
* a detector model and a super resolution model.
*
* @param detector_model_path onnx model file path for the detector
* @param super_resolution_model_path onnx model file path for the super resolution model
*/
CV_WRAP WeChatQRCode(const std::string& detector_model_path = "",
const std::string& super_resolution_model_path = "");This does also make the qrcode.py example invalid in the repo for OpenCV 5.0.
Source: opencv/opencv_contrib