Update wechat_qr/demo.py
#7
by efwfe - opened
- wechat_qr/demo.py +1 -1
wechat_qr/demo.py
CHANGED
|
@@ -22,7 +22,7 @@ def detect_qr(detect_model: str, sr_model: str,
|
|
| 22 |
print(f"Image size: {img.shape[1]}×{img.shape[0]}")
|
| 23 |
|
| 24 |
try:
|
| 25 |
-
detector = cv.wechat_qrcode_WeChatQRCode(detect_model, sr_model)
|
| 26 |
except AttributeError:
|
| 27 |
raise RuntimeError(
|
| 28 |
"cv2.wechat_qrcode_WeChatQRCode not found.\n"
|
|
|
|
| 22 |
print(f"Image size: {img.shape[1]}×{img.shape[0]}")
|
| 23 |
|
| 24 |
try:
|
| 25 |
+
detector = cv.wechat_qrcode_WeChatQRCode("",detect_model, "",sr_model)
|
| 26 |
except AttributeError:
|
| 27 |
raise RuntimeError(
|
| 28 |
"cv2.wechat_qrcode_WeChatQRCode not found.\n"
|