1. Are you ready for the Galaxy S20? Here is everything we know so far!

Would this be possible?!

Discussion in 'Android Development' started by Vinnydude, Jul 10, 2013.

  1. Vinnydude

    Vinnydude Well-Known Member
    Thread Starter

    i've had an idea for an app but i'm not sure whether it will be possible or not. Well, I think it's definatly possible, but it's whether it'll be fast enough!

    Basically, I want to use the camera to detect a flash, and then if there is a flash, the phone's camera will flash too. Basically using the phone as a remote flash.

    What do you think? Would I be able code something fast enough to register a flash on the camera and then set the phone's flash off?

    1. Download the Forums for Android™ app!


  2. rtumatt

    rtumatt Lurker


    It might be possible, one idea might be to monitor the RGB of the image on screen. If you detected 255-255-255 (white) for example then you could take a picture. Try this link

    Get RGB data from the android camera in stream - Stack Overflow

    I will say now however I can see any implementation like this being very tempremenatl, but good luck :)
  3. Vinnydude

    Vinnydude Well-Known Member
    Thread Starter

    It's the temperamental side of it that I was asking about whether it would eb possible really! :D

    In theory, it's visible on the camera screen everytime my dslr flashes, so it should definitely be possible to code something to register the flash anomaly on the screen. I guess it would be kind of similar to how the old light guns (duckhunt games) used to work in a way.

    Yeah, the main question is whether the flash would be quick enough as I'd be relying on the camera rather than a dedicated sensor.

    And then the ultimate question is, would it actually be any use?!

    I think as an idea it's alright, but seeing as I'd be using a

Share This Page