Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mat cameraMatrix = {put some Mat value here};
- Gson gson = new Gson();
- String json;
- // serialize
- json = gson.toJson(Double.toString(cameraMatrix));
- // deserialize
- cameraMatrix = gson.fromJson(json, Mat.class);
Add Comment
Please, Sign In to add comment