So I'm trying to implement the Face Recognizer methods from the contributed section of the OpenCV API on Android. The API documentation can be found here: http://docs.opencv.org/modules/contrib/doc/facerec/facerec_api.html
The problem I'm having is that in the Java API, the train method is:
public void train(List<Mat> src, Mat labels){
Mat src_mat = Converters.vector_Mat_to_Mat(src);
train_0(nativeObj, src_mat.nativeObj, labels.nativeObj);
return;
}
I cannot for the life of me, get the call to work because of the (Mat) labels input. In the c++ documentation it calls for a vector of integers, so I tried passing a 1D Mat, but no luck. Anyone had this problem or have some insight on how to tackle this?