Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_qr(data):
|
|
24 |
return temp_file.name
|
25 |
|
26 |
# Function to read a QR code using OpenCV
|
27 |
-
def
|
28 |
detector = cv2.QRCodeDetector()
|
29 |
data, _, _ = detector.detectAndDecode(img)
|
30 |
return data if data else "No QR code found."
|
|
|
24 |
return temp_file.name
|
25 |
|
26 |
# Function to read a QR code using OpenCV
|
27 |
+
def read_qr(img):
|
28 |
detector = cv2.QRCodeDetector()
|
29 |
data, _, _ = detector.detectAndDecode(img)
|
30 |
return data if data else "No QR code found."
|