Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to send a live stream in opencv

Hi. I try to send a live stream from videocapture directly. But it appear error : message too long Do i need process the stream before sending? I hope someone can do me a favor . THX in advance. here is my testing code: import cv2 from socket import *

cap = cv2.VideoCapture(0)

sock = socket(AF_INET, SOCK_DGRAM)

while (cap.isOpend()): t, frame = cap.read() ser.sendto(frame, addr)

cap.release() cv2.destoryAllWindows()