Skip to content

Instantly share code, notes, and snippets.

View JayateerthDambal's full-sized avatar
🎯
Focusing

Jayateerth Shyam Dambal JayateerthDambal

🎯
Focusing
View GitHub Profile
@JayateerthDambal
JayateerthDambal / main.ino
Created November 29, 2020 12:13
Arduino Code for LM35 by Jayateerth Dambal
int lm =A1;
void setup() {
Serial.begin(9600);
pinMode(lm,INPUT);
}
void loop() {
int value = analogRead(lm);
@JayateerthDambal
JayateerthDambal / webcamReader.py
Created November 28, 2020 13:01
Webcam reader
import cv2
def qr_readervideo():
cam = cv2.VideoCapture(0)
reader = cv2.QRCodeDetector()
while True:
_, img = cam.read()
data, bbox, _ = reader.detectAndDecode(img)
if data:
import cv2
def qrReader(img):
img = cv2.imread(img)
reader = cv2.QRCodeDetector()
data, bbox, _ = reader.detectAndDecode(img)
return data
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)