Galaxy S4 上的接近传感器(空中手势) [英] Proximity sensor on Galaxy S4 (Air Gestures)

查看:30
本文介绍了Galaxy S4 上的接近传感器(空中手势)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的三星 Galaxy S4 有一种有趣的新型手势,称为空中手势";使用红外传感器处理用户在屏幕前的手部动作,添加预触摸"/接近";事件,在触摸之前检测到手指.

我想使用这个浮动触摸";我的一个应用程序中的事件.我在 Google 和三星开发者中心都进行了搜索,但找不到任何 API 或相关信息.

API 是否可用还是为时过早?有人有任何链接/信息吗?

,称为Android 的敏感方面",解释了如何做类似的事情.基本上你使用光传感器,然后你注册一个下降.这很简单,但您必须记住,在运行应用程序时更改光源会影响此功能的结果.

也就是说,我认为他们在前置摄像头上使用手部检测来完成所有这些手势,这将非常复杂.此外,我还没有看到任何使手部检测变得简单的 api.

The new Samsung Galaxy S4 have and interesting new type of gestures called "Air Gesture" that use an infrared sensor to process users hand movement in front of the screen, adding a "pre-touch"/"proximity" event, in which the fingers are detected before the touch.

I'd like to use this "Floating Touch" event in one of my apps. I searched both on Google and in the Samsung Developers Center, but I couldn't find any API or information about that.

Are the API available or is too early? Does someone have any link/info?

http://www.samsung.com/global/microsite/galaxys4/lifetask.html#page=airview

解决方案

There is a good youtube video from a Google I/O session called "the sensitive side of Android" that explains how you could do something similar. Basically you use the light sensors and then you register a drop. This is quite simple but you gotta remember that changing light sources while running the app can affect the results of this feature.

That said I think they use hand detection on the front camera in order to pull off all those gestures and that would be quite complex. Also I haven't seen any api that makes it simple to do hand detection.

这篇关于Galaxy S4 上的接近传感器(空中手势)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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