Ask Your Question

wzj's profile - activity

2020-08-26 03:52:34 -0600 received badge  Popular Question (source)
2014-07-17 23:08:08 -0600 commented question how to send a live stream in opencv

eh... http://stackoverflow.com/questions/20820602/image-send-via-tcp it use string to transmission. There is some code that I do not really understand sock.send( str(len(stringData)).ljust(16)); why need do this

2014-07-17 03:06:43 -0600 commented question how to send a live stream in opencv

thank you so much

2014-07-17 01:48:00 -0600 commented question how to send a live stream in opencv

Got it ! so could you anwser my question PLS

2014-07-17 01:39:43 -0600 commented question how to send a live stream in opencv

eh... what do you mean?

2014-07-17 00:59:43 -0600 asked a question 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()

2014-07-16 04:46:31 -0600 commented question how to process the 'frame' (opencv) into a video streaming and real-time transmission to other servers

thx anyway

2014-07-16 04:41:05 -0600 commented question how to process the 'frame' (opencv) into a video streaming and real-time transmission to other servers

that's a task from my tutor... and i want to do that step by step. The final goal is that bulid a webcam... Do you have any advice to me ... THX

2014-07-16 04:33:42 -0600 commented question how to process the 'frame' (opencv) into a video streaming and real-time transmission to other servers

i just wanna real-time transport the video stream ... and the rtp is what i think of the first protocol

2014-07-16 03:51:24 -0600 asked a question how to process the 'frame' (opencv) into a video streaming and real-time transmission to other servers

I am a beginner in opencv(python) and spent a lot of time . I want to record video and real-time transport to the other server. here is the code. import cv2

cap = cv2.VideoCapture(0)

out = cv2.VideoWriter('output.avi', cv2.cv.CV_FOURCC('M', 'J', 'P', 'G'), 20.0, (640,480))

while(cap.isOpened()): ret, frame = cap.read() if ret == True:

    out.write(frame)

    cv2.imshow('show', frame)
    if cv2.waitKey(1) & 0XFF == ord('q'):
        break

cap.release() out.release() cv2.destroyAllWindows()

i don't know what type of data is 'frame' and how to process it to be a stream to transport to the another server in real-time. hope someone help me to solve this problem