2015-02-13 00:57:48 -0600 | commented question | Mat to Byte[] conversion not working in java Thanks Berek , You saved the day. |
2015-02-10 06:21:03 -0600 | commented question | Mat to Byte[] conversion not working in java Yes, but MatOfByte inputframe=new MatOfByte(frameArray); also inputframe.fromArray(frameArray); inputframe.put(0,0,frameArray); |
2015-02-10 05:04:23 -0600 | commented answer | How to get and modify the pixel of Mat in Java? Not working for me too.... |
2015-02-10 04:03:46 -0600 | commented question | Mat to Byte[] conversion not working in java updated with code |
2015-02-10 01:34:36 -0600 | asked a question | Mat to Byte[] conversion not working in java I tried to convert Mat to byte array in java . On conversion of Mat to Byte[] and Byte[] to Mat, I am not able to retain the original value of Mat. The .get method in Mat has parameter which is not working. Can anyone help me with the same? Use Case: To grab each frame of video and send it via kafka to consumer containing byte[] message then consumer would recieve the byte array and convert to Mat and save it as image. I came accross similar posts in java but no solution was found. link See my code: |