I am trying to detect faces from a Bitmap but it doesnt detect any faces.
...
bm.copy(Bitmap.Config.ARGB_8888,true);
Mat image=new Mat ( bm.getHeight(), bm.getWidth(), CvType.CV_8U, newScalar(4));
Utils.bitmapToMat(bm, image);
MatOfRect faceDetections = new MatOfRect();
//Imgproc.cvtColor(image, image, Imgproc.COLOR_BGR2GRAY);
Imgproc.cvtColor(image, image, Imgproc.COLOR_RGB2GRAY, 4);
mJavaDetector.detectMultiScale(image, faceDetections);
System.out.println(Arrays.toString(faceDetections.toArray()));
ps:CascadeClassifier.empty() returns false and bitmap is also not null
Thanks