Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created November 24, 2021 13:33
Show Gist options
  • Save Merwanski/7eb8a300e6dda892f8d92d231be9214b to your computer and use it in GitHub Desktop.
Save Merwanski/7eb8a300e6dda892f8d92d231be9214b to your computer and use it in GitHub Desktop.
image streaming tcp
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