有没有一种有效的方法来进行“连续”操作?自动对焦?

发布于 2024-11-30 19:05:48 字数 133 浏览 0 评论 0原文

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

有没有一种方法可以重复调整焦点,而不必完全重新设置当前焦点?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぃ双果 2024-12-07 19:05:48

请参阅

编辑

并不是说我相信该网站很快就会消失,但以防万一:

public static final String FOCUS_MODE_CONTINUOUS_VIDEO

用于视频录制的连续自动对焦模式。相机不断尝试对焦。这非常适合拍摄视频。在此模式下,应用程序仍然可以调用 takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback),但主体可能无法对焦。设置参数后自动对焦开始。应用程序不应在此模式下调用 autoFocus(AutoFocusCallback)。要停止连续对焦,应用程序应将对焦模式更改为其他模式。常量值:“连续视频”

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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文