I would like to access a panasonic CCTV camera, and to begin with I'm trying to use a basic code (such as the following for a webcam):
import cv2
import numpy as np
cap = cv2.videoCapture(0)
while True:
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
In order to change the camera, do I change the VideoCapture command?
I saw that for IP cameras I have to put a URL instead of 0. Is it the same in this case?
I'm using: pyhon 2.7.15, openCV 2.4.9, windows 7
The camera's manual is: https://panasonic.cn/support/download/manual/files/WV-BP330%E3%80%81332%E3%80%81334.pdf
Thanks a lot