2014-01-15 08:26:17 -0600 | commented question | Sending Opencv images from Android to PC over TCP I thin te problem is the conversion between the rbga image->mat->byte array en back. Can anyone see a problem? |
2014-01-15 08:21:02 -0600 | commented question | Sending Opencv images from Android to PC over TCP Thank you for yout comments, does anybody know a good example or solution? |
2014-01-15 05:25:00 -0600 | asked a question | Sending Opencv images from Android to PC over TCP I'm working on a Android app that grabs a image and sends it to a PC client for display, both the Android app and PC application use Opencv. The image that i want to send over is a color image (grabbed in the rbga format). First i grab a image in the java app using: Next i am using the Mat image variabele and convert the input image to a byte array using the following native (using JNI) function: Next is end the byte array (containing the image data) over TCP with the following function: On the PC side (in c++) i recieve the buffer with a boost lib recieve function: } And then i display the variable with the imshow function of opencv. The problem is that i don't get a image in the window on the pc side. i'm thinking the conversion is going wrong somewhere but i dont' see where. Does anybody have a idea? All suggestions and feedback are welcome! |