Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to connect ip camera to opencv python

import cv2
import numpy as np

cap = cv2.VideoCapture(0)

while(True):
    ret, frame = cap.read()
    cv2.imshow('frame',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #connect #ip #camera #opencv #python
ADD COMMENT
Topic
Name
8+8 =