CultriX commited on
Commit
368d01c
·
verified ·
1 Parent(s): 8102829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 read_qr_with_opencv(img):
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."