Facedetector Error Exist In Btk_facefinder_putdcr
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: Face
Solution 1:
The width of the image MUST be even.
Solution 2:
After a lot of searching, You should put your images in drawable-nodpi folder.
Solution 3:
Bitmap bitmap565 = bmp.copy(Bitmap.Config.RGB_565, true);
Solution 4:
As per the documentation of http://developers.android.com if the image width is not even then this exception occur.
For further detail check this link:
http://developer.android.com/reference/android/media/FaceDetector.html
Post a Comment for "Facedetector Error Exist In Btk_facefinder_putdcr"