AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
import cv2
import webbrowser

cap=cv2.VideoCapture(0)
detector=cv2.QRCodeDetector()
while True:
_,img=cap.read()
data,one, _=detector.detectAndDecode(img)
if data:
a=data
break
cv2.imshow('qrcodescanner app',img)
if cv2.waitKey(1)==ord('q'):
break
b=webbrowser.open(str(a))
cap.release(a)
cv2.destroyAllWindows()
Here is the code for qrcode scanner using python
import pyqrcode
import png
from pyqrcode import QRCode

link='www.wikipedia.com'
url=pyqrcode.create(link)
url.png('wikipediaqrcode.png',scale=6)
VIDEO UPDATE : Tomorrow new video 👍
Beginner project video in python👆
Latest video in the form of Blog
Good morning programmers 😁
import time
String='subscribe to Akpython'
wordcount=len(String.split())
print(String)
while True:
t0=time.time()
inputtext=str(input('Enter the Sentence:'))
t1=time.time()
accuracy=len(set(inputtext.split())&set(String.split()))
accuracy=accuracy/wordcount
timetaken=t1-t0
wpm=wordcount/timetaken
print("WPM",wpm,"Accuracy",accuracy,"Timetaken",timetaken)
Here is the code for typing speed calculator 👍

Keep share support 🌟
Tech news...... 🖥

YouTube going to try hiding the dislike count on videos from public view.
The company says it will run a “small experiment” where it will try out a few different designs where dislike counts are no longer shown, however none will see the “dislike” button itself removed entirely.

Share support
Edge detection project video is out now
👍
Good morning Programmers 👍
import cv2
import numpy as numpy
from matplotlib import pyplot as plt

img=cv2.imread('Cristiano_Ronaldo_2018.jpg',0)
edges=cv2.Canny(img,100,200)

plt.subplot(121),plt.imshow(img,cmap='gray')
plt.title('Original image'),plt.xticks([]),plt.yticks([])
plt.subplot(122),plt.imshow(edges,cmap='gray')
plt.title('Edge Image'),plt.xticks([]),plt.yticks([])

plt.show()
Here is the code for edge detection