On Tuesday, September 4, 2012 12:43:47 PM UTC+5:30, Elease wrote: > > Hello, > > I want to detect faces with camera capturing by using Android 4.0 face > detection API( android.hardware.Camera.Face ). > This API has many objects to offer developers realized the situation of > face detecting. > But I applied the API on my mobile phone (HTC One X) most of the values > are always retuen null !! > I just only get > rect<http://developer.android.com/reference/android/hardware/Camera.Face.html#rect> > and > score<http://developer.android.com/reference/android/hardware/Camera.Face.html#score> > values > and other objects( id, > leftEye<http://developer.android.com/reference/android/hardware/Camera.Face.html#leftEye> > , > mouth<http://developer.android.com/reference/android/hardware/Camera.Face.html#mouth>, > > rightEye<http://developer.android.com/reference/android/hardware/Camera.Face.html#rightEye> > ) > is always return null. > > The API documentation itself clearly states that leftEye, mouth, rightEye may not be supported on certain devices, and such devices returning null is the correct behaviour. So what you see isn't a problem, but the device's limitation.
I research many resources to find out the reason why the API can't work > well. > Someone said that the API can't support every hardware. But which could > support the API well? > Maybe, someone who has a Nexus 7, might check and tell. That could be one possibility. > And no one can solve this problem. > > I really want to solve these problems. > Please help me if you have any comment or other idea about this. > > Unless the device manufacturer provided an implementation for those API's, I think you have a no-go here. The likely reasons why those parameters are null is possibly because -- 1) Processor is not powerful enough (or not enough RAM) to do the necessary computation. Feature detection/object detection is a computationally complex and demanding task. 2) The camera (typically the front facing one), is often a low-resolution one, given which detecting fine features within face, may not be reasonably possible. Devices with better front-facing camera are more likely to work! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

