Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

How to convert encoded image string to Mat in OpenCV in JAVA?

asked 2013-09-13 06:45:43 -0500

surodip gravatar image

updated 2013-09-13 11:34:28 -0500

In my work I have to get image matrix from the encoded string of an image. I am using OpenCV and JAVA.

Can anyone tell me how to do this?

Thanks, Surodip

edit retag flag offensive close merge delete


encoded => How?

Spas Hristov gravatar imageSpas Hristov ( 2013-09-13 06:50:13 -0500 )edit

Encoded in Base64. I read an image, convert it to byte[] and encode it into Base64 String using Base64.Base64.encodeBase64String(byte[])

surodip gravatar imagesurodip ( 2013-09-13 07:09:07 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-09-13 08:00:11 -0500

Try that: link text

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-09-13 06:45:43 -0500

Seen: 1,851 times

Last updated: Sep 13 '13