Is there an efficient way to do “continuous” auto-focus?

后端 未结 1 1900
傲寒
傲寒 2021-01-05 13:58

I\'m working on an android app using the camera, and the only means of focusing the image I\'ve found requires the use of the built-in auto-focus. Its functionality is grea

相关标签:
1条回答
  • 2021-01-05 14:32

    See this.

    edit

    Not that I believe the site will go away anytime soon, but just in case:

    public static final String FOCUS_MODE_CONTINUOUS_VIDEO
    

    Continuous auto focus mode intended for video recording. The camera continuously tries to focus. This is ideal for shooting video. Applications still can call takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback) in this mode but the subject may not be in focus. Auto focus starts when the parameter is set. Applications should not call autoFocus(AutoFocusCallback) in this mode. To stop continuous focus, applications should change the focus mode to other modes. Constant Value: "continuous-video"

    0 讨论(0)
提交回复
热议问题