I donβt know much about TCP / IP programming or a lot about the client / server ... but all I can offer is to initialize the images, as a rule, in the constructors of the camera / client / server class,
Mat Frame = Mat::zeros(rows,cols,CV_8UC3);
so every time the client / server is initialized or before you are ready to share images ... the initial image is a blank image ...
you must initialize with cvCreatImage() .. so you can do the following ...
IplImage *m = cvCreateImage(cvSize(200,200),8,3);// say its 200 x 200 cvZero(m); cvShowImage("BLANK",m); cvvWaitKey();
it shows a black image with every pixel as zero ...
source share