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

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

问题描述

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

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

解决方案

请参阅<一href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#FOCUS_MODE_CONTINUOUS_VIDEO"相对=nofollow>这个。

修改

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

 公共静态最后弦乐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"

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

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