Guest User

Untitled

a guest
Nov 16th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Mat cameraMatrix = {put some Mat value here};
  2. Gson gson = new Gson();
  3. String json;
  4.  
  5. // serialize
  6. json = gson.toJson(Double.toString(cameraMatrix));
  7.  
  8. // deserialize
  9. cameraMatrix = gson.fromJson(json, Mat.class);
Add Comment
Please, Sign In to add comment