Face Detection Not Working Using Methods From Api14
I have a problem with face detection methods from API14. I have not null camera object. I set to it listener using setFaceDetectionListener with very simple implementation of FaceD
Solution 1:
OK guys, issue solved. Not all devices supports face detection function from camera preview. It's device-dependent. Some of devices can crash with message like java.lang.IllegalArgumentException: invalid face detection type=0
but some devices do nothing and listener's method is never reached.
In this case it's needed to check that device support this function using Camera.getMaxNumDetectedFaces()
. If this method returns 0 then we can be sure that our device does not support face detection methods from API14.
Post a Comment for "Face Detection Not Working Using Methods From Api14"