Hi, I have a buffer,which contain a stream video; I want to show it. I use imdecode but don't work. Can anyone help me please? My code is:
u_int8_t fReceiverBuffer; Mat frame=imdecode(fReceiverBuffer,1) imshow("Video",frame); waitKey(30)
1 | initial version |
Hi, I have a buffer,which contain a stream video; I want to show it. I use imdecode but don't work. Can anyone help me please? My code is:
u_int8_t fReceiverBuffer; Mat frame=imdecode(fReceiverBuffer,1) imshow("Video",frame); waitKey(30)
2 | No.2 Revision |
Hi,
I have a buffer,which contain a stream video; I want to show it. I use imdecode cvDecodeImage but don't work. work, infact it show only black image and no video. Can anyone help me please? It's very important forme. My code is:
u_int8_t fReceiverBuffer;
Mat frame=imdecode(fReceiverBuffer,1)
imshow("Video",frame);
waitKey(30)*fReceiverBuffer;
CvMat matbox = cvMat(480, 640, CV_8UC3, fReceiveBuffer);
IplImage *mat=cvDecodeImage(&matbox,CV_LOAD_IMAGE_COLOR);
cvShowImage("VideoClip2",mat);
waitKey(30);