This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int lm =A1; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(lm,INPUT); | |
} | |
void loop() { | |
int value = analogRead(lm); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
def qr_readervideo(): | |
cam = cv2.VideoCapture(0) | |
reader = cv2.QRCodeDetector() | |
while True: | |
_, img = cam.read() | |
data, bbox, _ = reader.detectAndDecode(img) | |
if data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
def qrReader(img): | |
img = cv2.imread(img) | |
reader = cv2.QRCodeDetector() | |
data, bbox, _ = reader.detectAndDecode(img) | |
return data | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qrcode | |
def qr_generate(url, saved_img = 'QrCode.png'): | |
img = qrcode.make(url) | |
img.save(saved_img) | |
return img | |
url = "https://techfandome2020.netlify.app/" | |
qr_generate(url) |