有没有一种有效的方法来做“连续"?自动对焦?

编程入门 行业动态 更新时间:2024-10-24 03:21:09
本文介绍了有没有一种有效的方法来做“连续"?自动对焦?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用相机开发一个 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"

更多推荐

有没有一种有效的方法来做“连续"?自动对焦?

本文发布于:2023-11-25 14:10:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630072.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:来做   自动对焦   方法   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!