Jump to content
Sign in to follow this  
Ataberk

How to use ıp camera via phyton3 (Help)

Recommended Posts

Hi guys.I bought IP camera (brand:AHWVSE ; Model:XMEYE) of aliexpress.I wanna try for the image processing and show live stream on pyhton3.it works on net surveillance web.I tried as

But ı dont know my snapshot url.

like this:

import urllib
import cv2
import numpy as np

url='http://192.168.0.103:8080/shot.jpg'

while True:
   imgResp=urllib.urlopen(url)
   imgNp=np.array(bytearray(imgResp.read()),dtype=np.uint8)
   img=cv2.imdecode(imgNp,-1)

   # all the opencv processing is done here
   cv2.imshow('test',img)
   if ord('q')==cv2.waitKey(10):
       exit(0)

but it is not working.what should ı do? Can anyone help me?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×