def receive_frame(self,c,tkk):
print "Waiting to receive frames of video from Server...."
data = np.empty((700,500), dtype = np.int8)
self.sock.recv_into(data)
raw=cv2.imdecode(data,cv2.CV_LOAD_IMAGE_COLOR)
cv2.imwrite("frame%d.jpeg" %c,raw)
path="frame"+str(c)+".jpeg"
print "pATH :"+path
print c
return path
评论列表
文章目录