Created
November 24, 2021 13:33
-
-
Save Merwanski/7eb8a300e6dda892f8d92d231be9214b to your computer and use it in GitHub Desktop.
image streaming tcp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import cv2 | |
# TODO update with this part with your ip address | |
cap = cv2.VideoCapture("tcp://192.168.68.97:18003") | |
while(True): | |
ret, frame = cap.read() | |
cv2.imshow('frame', frame) | |
if cv2.waitKey(1) & 0xFF == ord('q'): | |
break | |
cap.release() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment