how to convert int array to mat in android?
how to convert int array to Mat in android?
since this is probably still about the face rcognition, -- you have some options:
// 1. use an int[]
int[] data = {1,2,3,4,5,6}; // however you fill it
Mat labels(6,1,CV_32S);
labels.put(0,0, data);
// 2. use MatOfInt
MatOfInt labels = new MatOfInt(); // initially empty !
for (each item)
labels.push_back(new MatOfInt(17));
Asked: 2018-08-28 05:14:00 -0600
Seen: 1,264 times
Last updated: Aug 28 '18