相机(Camera)镜头的触发事件功能源码
相机(Camera)镜头的触发事件功能源码,源码CFMagicEventsDemo,利用设备的后视相机镜头作为触发事件的一个开关。当手(或者其他东西)划过设备的后视相机镜头时,设备会检测到这一事件,从而会触发另外的事件。在Demo中,用手掌遮挡镜头,会变图片。测试时,手掌要靠近镜头一点。 Use your back camera as a simple button This trick was initially created to make an app for my children (available here for free : Incredible App - US/EN/FR version). This allows to use your back camera as a simple button. Technically, frames are captured from the back camera, and a simple algorithm is checking the fall of luminosity due to passage of your finger.
文件列表
相机(Camera)镜头的触发事件功能源码.zip
(预估有个28文件)
CFMagicEventsDemo-master
CFMagicEventsDemo
main.m
291B
CFAppDelegate.m
2KB
CFMagicEventsDemo-Info.plist
2KB
CFViewController.h
144B
Main_iPad.storyboard
2KB
Main_iPhone.storyboard
2KB
CFViewController.m
3KB
chapeau_640_720.jpg
28KB
暂无评论