Home > Software engineering >  MFC, opencv, the real time transmission through a socket to android images
MFC, opencv, the real time transmission through a socket to android images

Time:09-30

Recently doing a project, because it is engineering subject, so the PC server is based on the MFC and opencv, access to the scene on the server through a camera images, but also the scene of some of the arguments to mobile phones, completed the socket communication, some different character parameters I also passed by the method of mark, left a problem that how to put the mat type frame frame is passed to the mobile phone, but also as before with tags, used to distinguish different of passing information, check a lot of information, personal ability is limited, really hope everybody can help greatly! Please post some code examples show me you thank you thank you!!!

CodePudding user response:

PC side to make the Web server, through a Web browser view should be able to reduce a lot of work

CodePudding user response:

The custom format, send data through a socket, parsing, after receiving back into images

CodePudding user response:

reference 1st floor zgl7903 response:
PC side to make the Web server, through a Web browser view should be able to reduce a lot of work


I phone app other things have been done, and can no longer go to consider other,,

CodePudding user response:

refer to the second floor oyljerry response:
custom format, send data through the socket, after receiving parsing, back into the image


I am now the Iplimage saved as a bitmap file, and then through the fp=fopen (" F://ABC. BMP ", "ab") to read into the binary, then through fread (buffer 1, sizeof (fp), fp) deposited in the buffer; To send (connectSock, char * buffer, strlen (buffer), 0). But look breakpoint phone receive data don't have any problem to ask the ideas