I am doing face recognition using opencv4android and JavaCV. I did the face detection in OpenCV and create LBP histogram through JavaCV Face Recognizer class. I want to save this histogram in database. The histogram is in Matvector type. presently i am saving the model into xml file using the model.save method. and then parse the xml and take the histogram into string. I want to use opencv4android method compareHist(Mat,Mat,int) for comparison so I need to convert this string back to Mat. How can i do it using OpenCV4andorid?