get paid

Get paid for the tasks you do online

2019年5月12日 星期日

如有用 python 讀取 IP Cameras

讀取 IP Cameras 的方法非常簡單

可以直接使用 Open CV package

import cv2 # ip camera 的擷取路徑 URL = "rtsp://admin:admin@192.168.1.1/1" # 建立 VideoCapture 物件 ipcam = cv2.VideoCapture(URL) # 使用無窮迴圈擷取影像,直到按下Esc鍵結束 while True: # 使用 read 方法取回影像 stat, I = ipcam.read()

沒有留言:

張貼留言

Ether.FI 神卡 https://www.ether.fi/@46933474

 Ether.FI 真的是神卡 有買US Amazon  或穩定幣的很適合辦一張 我的推薦碼 https://www.ether.fi/@46933474