有没有一种有效的方法来做“连续"?自动对焦? [英] Is there an efficient way to do "continuous" auto-focus?

查看:20
本文介绍了有没有一种有效的方法来做“连续"?自动对焦?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用相机开发一个 android 应用程序,而我发现的唯一对焦图像的方法需要使用内置的自动对焦.当您想拍照时,它的功能非常棒,但当您处理视频时,它就完全是另一回事了.

有没有办法重复调整焦点而不必完全重新设置当前焦点?

解决方案

参见这个.

编辑

我并不认为该网站会很快消失,但以防万一:

public static final String FOCUS_MODE_CONTINUOUS_VIDEO

<块引用>

用于视频录制的连续自动对焦模式.相机不断尝试对焦.这是拍摄视频的理想选择.应用程序仍然可以在此模式下调用 takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback),但主体可能不在焦点上.设置参数后自动对焦开始.应用程序不应在此模式下调用 autoFocus(AutoFocusCallback).要停止连续对焦,应用程序应将对焦模式更改为其他模式.常量值:"continuous-video"

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 great when you're looking to take a picture, but when you're working with video it's a whole other story.

Is there a way to repeatedly adjust the focus without having to completely re-set the current focus?

解决方案

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"

这篇关于有没有一种有效的方法来做“连续"?自动对焦?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆