Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to load EM model using OpenCV android sdk V3.0.0

Hi all, I am using EM.Java to create a model and I save it to the file but I can't find the way to load it back for prediction purpose.

    EM model = EM.create();
    model.setTermCriteria(new TermCriteria(TermCriteria.COUNT+TermCriteria.EPS, 500, 0.001));
   boolean b = model.trainEM(mMatrix);

I will really appriciate if some one can guide me how to load trained model ?