I am trying to detect a face from a camera picture.
But it always ends up in the following error:
ERROR: Return 0 faces because error exists in btk_FaceFinder_putDCR.
My code:
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 that code is, that I dont know the Bitmap Config and I dont know ho to convert a Bitmap to the Config.RGB_565 format.
Can anyone help?
The width of the image MUST be even.
After a lot of searching, You should put your images in drawable-nodpi folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With