|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Python IP camera
Hello,
I am using an axis camera and python to do visual tracking. I have a problem with the set up. There is no problem with the code interpreting. This is my first time using an IP camera so i'm not sure if I'm even doing it correctly. Here's my code(spacing is correct on my computer) import numpy as np import cv2 cap = cv2.VideoCapture() cap.open("http://169.254.197.26/") while(cap.isOpened()): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here print "hi" # Display the resulting frame cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # When everything done, release the capture cap.release() cv2.destroyAllWindows() Last edited by hamza.mahdi : 25-05-2016 at 13:54. Reason: code spacing |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|