Possible to use Light Sensor as a Button?

Discussion in 'Public Game Developers Forum' started by geelet, May 6, 2009.

  1. geelet

    geelet Member

    Mar 13, 2009
    22
    0
    0
    like light off, button pressed.

    or even recodnize gestures u do in front of it.

    same goes for cam, would make sense using them as a button.
    or implement in other ways.

    greets
     
  2. Thorero

    Thorero Well-Known Member

    Nov 15, 2008
    227
    7
    0
    Graphic Designer, 3D Modeller, Web Design
    Portugal
    Being unfamiliar with iDevice Development, I'm not sure if you're able to use the light sensors or not, but I highly doubt you could use them to recognize gestures. They're probabaly ambient light sensors, not cameras. So the answer is Perhaps. You may be able to use them as a 2 way button, but that's about it.
     
  3. LBG

    LBG Señor Member

    Apr 19, 2009
    7,471
    1
    0
    nada ilegal
    31.560499, -111.904128
    I don't think you can, as the SDK probably wouldn't allow you to, allthough in theory, it is possible. On a similar topic, does anyone know if face recognition software could be added to the iPhone? Is it all about the hardware, or could an app allow the camera to recognise a face. It's just my laptop has a webcam and to log-on you just sit infront of the camera and it recognises your face. It also includes some cool software that allows you to put masks, hats, features etc on your face using the face recognition.
     
  4. luis

    luis Member

    This guy just released the face detection code he used for one of this apps. I think it just finds faces on an image, but should be a good starting point.

    http://blog.beetlebugsoftware.com/
     
  5. geelet

    geelet Member

    Mar 13, 2009
    22
    0
    0
    light sensor:
    yes maybe not a real gesture, but what about a swipe from left to right.
    it does know more then light on and off. it more see how much light there is.

    and i guess face recognition software is, ähm i wanted to say possbile, but im not sure if the phone is strong enough for real time face recognition.
     
  6. LBG

    LBG Señor Member

    Apr 19, 2009
    7,471
    1
    0
    nada ilegal
    31.560499, -111.904128
    :eek: Just downloaded it. And wow, I never knew the iPhone was capable of recognising faces. It's very basic but it is a good start. If sombody put some work into it, they could make a great app. I am suprised that nobody has stolen his code ;)
     
  7. Zincous

    Zincous Well-Known Member

    Dec 23, 2008
    4,567
    46
    36
    Sacramento, CA
    It's not allowed in the SDK. That API is restricted. Although the google app used it for their voice activation and there was a lot of controversy about it getting through just because they are google.

    But yes you can use it technically.
     
  8. bovinedragon

    bovinedragon Well-Known Member

    Sep 20, 2008
    98
    0
    0
    In the new iPhone SDK 3.0, there is a new API to use the proximity sensor. Don't know of anyone who has tried to use it as a button yet, but definitely possible.
     

Share This Page