http kullanarak http .4 video akışı için VLC media player kullanıyorum. Akış güzel çalışıyor (bu akışa VLC'nin başka bir örneğini kullanarak ekleyebildim). Şimdi python 2.7 ile OpenCV kullanarak bu akıma bağlanmak ve video karesini çerçeveye almak istiyorum.Video çerçevesi, openCV ve python kullanarak akışa göre çerçeveye nasıl alınır
(yerel dosya ile mükemmel çalışıyor) Bu değiştirilir öğretici kodu:
<code>
import numpy as np
import cv2
address = '10.0.0.71' # this is my stream ip address
port = 8080 # this is stream port
# should I use socket somehow?
# found this somewhere, no idea what this do
# import socket
# msocket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
# msocket.connect((address, port))
cap = cv2.VideoCapture('file.mp4') # how to use VideoCapture with online stream?
# just showing video to screen
while(cap.isOpened()):
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
yardım edin. merhaba, şifre:
http://answers.opencv.org/question/3664/ip-network-camera-access/ – udit043