Skip to main content

Contact Us

If you have a Query to submit please ask us anything. For Suggestions, Complaints or any gossip you wanna share email us at waseem6383@gmail.com
Or visit us at House no. 592 gali no. 14 dhok kalan khan Rawalpindi

Comments

Popular posts from this blog

IP camera access through python

In this tutorial we access IP camera using python. from urllib.request import Request, urlopen import base64 import cv2 import urllib import numpy as np url = 'http://192.168.0.104:8080/shot.jpg' username = '' password = '' while True:     proxy_handler = urllib.request.ProxyHandler({})     opener = urllib.request.build_opener(proxy_handler)     imgResp = Request(url, headers={"User-Agent": "Mozilla/5.0"})     base64string = base64.b64encode(('%s:%s' % (username, password)).encode("utf-8")).decode("utf-8")     imgResp.add_header("Authorization", "Basic %s" % base64string)     r = opener.open(imgResp)     imgNp = np.array(bytearray(r.read()), dtype=np.uint8)     img = cv2.imdecode(imgNp, -1)     cv2.imshow('test', img)     if ord('q') == cv2.waitKey(10):         exit(0)     # all the opencv processing is done here     cv2.imshow...