views:

30

answers:

1

i'm searching for a way to analyze the camera's view live. the iphone should recognize and react to sudden changes in brightness.

can you give me some hints?

leave a comment if my question is not clear enough!

+1  A: 

With iOS4 you can gain access to the raw video frames via AVCaptureVideoDataOutput.

Once you have the video frame, you can analyze its brightness and react accordingly.

Look for the AVCam sample.

Avalanchis
can you give me a short hint, how to "analyze the brightness". just some method names or something? i'll take a look at AVCam, thanks!
choise
If you have access to the WWDC 2010 videos and samples, there are several that might be helpful to you.
Avalanchis
thanks i think the wwdc example codes, especially the one with this orange pylon, are the right thing for me
choise