0

I am doing an Android application that uses camera. I want that camera focuses in faces. My dude is: Nexus 5 front camera only has "Fixed" in focus mode. Is there some way to use setRect areas or something like that.

I try to use facedetectionlistener and runs ok but when i also add a previewcallback to do some process stops running. (Issue with preview callback [ANDROID])

Thanks

Community
  • 1
  • 1
user3086708
  • 375
  • 3
  • 17
  • Please be much more specific as to what you're asking, what you've tried, and why what you've tried doesn't work. – Nic Feb 11 '15 at 15:48
  • I try to focus my camera to face location, but if i use facedetection listener and previewCallback together not runs facedetectionlisterner – user3086708 Feb 11 '15 at 16:01

1 Answers1

0

You might want to take a look at Camera.Parameters. It has setFocusArea and setAutoFocus functions.

Check this one

Community
  • 1
  • 1
Ha Dang
  • 1,218
  • 1
  • 10
  • 12