Spaces:
Runtime error
Runtime error
andytonglove
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ import gradio as gr
|
|
8 |
def detect_qr_code(image):
|
9 |
# 初始化 WeChatQRCode 检测器
|
10 |
qrcode_detector = cv.wechat_qrcode_WeChatQRCode(
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
)
|
16 |
|
17 |
# 检测并解码二维码
|
|
|
8 |
def detect_qr_code(image):
|
9 |
# 初始化 WeChatQRCode 检测器
|
10 |
qrcode_detector = cv.wechat_qrcode_WeChatQRCode(
|
11 |
+
"detect.prototxt",
|
12 |
+
"detect.caffemodel",
|
13 |
+
"sr.prototxt",
|
14 |
+
"sr.caffemodel",
|
15 |
)
|
16 |
|
17 |
# 检测并解码二维码
|