Exlpained QR Code Priject
Exlpained QR Code Priject
import cv2
cap = cv2.VideoCapture(0)
while True:
# Capture frame-by-frame
detector = cv2.QRCodeDetector()
if data in students:
if attendance[data] == "Absent":
attendance[data] = "Present"
else:
bbox = bbox.astype(int)
for i in range(len(bbox[0])):
else:
print("Invalid QR code")
# Use a breaking condition with 'q' key press to close the window
break
cap.release()
cv2.destroyAllWindows()
print(f"{student}: {status}")