简体   繁体   English

如何使用音频插孔缩放和聚焦 Android 相机?

[英]How to zoom and focus Android camera using audio jack?

音频插孔 对焦控制相机

I want to control zoom or focus of my Android phone's camera using audio jack.我想使用音频插孔控制我的 Android 手机相机的缩放或对焦。 It is common to use audio jack to take picture or probably we may call it as shutter.使用音频插孔拍照是很常见的,或者我们可以称之为快门。 It is done by connecting the mic port and the ground as shown in the picture 2 (I took it from here . It is not Android, but probably the same idea is possible with Android).如图 2 所示,它是通过连接 mic 端口和接地来完成的(我从这里拿来的。它不是 Android,但可能与 Android 相同的想法是可能的)。 Is it possible to do zoom or focus using the audio jack?是否可以使用音频插孔进行缩放或对焦? Say, like we manipulate or rearrange it something like explained in picture 1?比如说,就像我们操纵或重新排列它,就像图 1 中解释的那样? Picture 1 taken from here .图片 1 取自这里

The Android specification for the audio Jack, this gives you the input/key events that can be generated by the audio jack.音频插孔的 Android 规范,这为您提供了可以由音频插孔生成的输入/键事件。 Your camera application should listen for these events and do the appropriate action.您的相机应用程序应侦听这些事件并执行适当的操作。

How to create hardware to generate the events is here如何创建硬件来生成事件在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM