ClientSocket.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Video-Streaming 作者: henadaus 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号