I am trying to detect a face from a camera image.
But it always ends with the following error:
ERROR: returns 0 faces because there is an error in btk_FaceFinder_putDCR.
My code is:
FaceDetector fd = new FaceDetector(bmp.getWidth(), bmp.getHeight(), 1); Face[] faces = new Face[1]; int nrOfFaces = fd.findFaces(bitmap565, faces);
The only problem I see with this code is that I don’t know Bitmap Config and I don’t know how to convert Bitmap to Config.RGB_565 format.
Can anyone help?
source share