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

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

问题描述

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

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.

我想使用此"浮动触摸"我的一个应用中发生了事件.我在Google和三星开发人员中心都进行了搜索,但是找不到任何API或有关该信息的信息.

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.

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

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

推荐答案

有一个很好的来自Google I/O会话的YouTube视频(称为"Android的敏感方面"),它说明了您可以如何执行类似操作.基本上,您使用光传感器,然后注册一个下降.这很简单,但是您要记住,在运行应用程序时更改光源会影响此功能的结果.

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.

那就是说,我认为他们在前置摄像头上使用手部检测来拉出所有这些手势,这将非常复杂.另外,我还没有见过任何使手部检测变得简单的api.

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天全站免登陆