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

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

我在一个Android应用程序的工作使用的摄像头,并且注重我发现图像的唯一方法需要使用内置的自动对焦。它的功能是当你想拍照伟大的,但是当你正在使用的视频这是一个整体的其他故事。

有没有办法来反复调整的重点,而无需完全重新设置当前重点是什么?

解决方案

请参阅这个。

修改的

不,我相信该网站将很快消失,但以防万一:

公共静态最后弦乐FOCUS_MODE_CONTINUOUS_VIDEO

  

针对视频拍摄连续自动对焦模式。相机不断地尝试对焦。这是理想的拍摄视频。应用程序仍可以调用 takePicture(Camera.ShutterCallback,Camera.PictureCallback,Camera.PictureCallback)在此模式下,但这个问题可能不会成为市场关注焦点。自动聚焦启动时的参数设置。应用程序不应该叫自动对焦(AutoFocusCallback)在此模式下。要停止连续对焦,应用程序应该改变对焦模式等模式。恒值:连续录像

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-30 21:35:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651541.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法来   自动对焦   QUOT

发布评论

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

>www.elefans.com

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