title: Android: FaceDetector doesn't work. findface always detects zero face;
body: <p>I have a problem with face detection in Android using android.media.FaceDetector
  I have tried to detetect faces using this code:</p>
  
  <pre><code>BitmapFactory.Options options = new BitmapFactory.Options();
  options.inPreferredConfig =  Bitmap.Config.RGB_565;
  Bitmap b = BitmapFactory.decodeFile(Environment.getExternalStorageDirectory()+"/myimage.jpg", options);
  FaceDetector fd = new FaceDetector(b.getWidth(), b.getHeight(), 1);
  Face[] face = new Face[1];
  int detected_face = fd.findFaces(b, face);
  </code></pre>
  
  <p>detected_face it is always 0;</p>
  
  <p>I've tried to use different images, but I received the same results.
  Someone could explain me what's wrong with my code?</p>
  
  <p>Regards </p>