how to convert int array to mat in android?
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,225 times
Last updated: Aug 28 '18
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?
Unresolved inclusion in OpenCV+Android tutorial
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Which values for window size and number of pyramids are reasonable for calcOpticalFlowPyrLK?
Errors running builder 'CDT Builder' when trying to build OpenCV for android samples
ndk-build deletes native OpenCV library
Installing Sample App / OpenCV Manager