ios7 - Showing "Low light" as message when there is low light while using iphone camera -


i have requirement need show message "low light" when there low light around iphone front camera. searching public api didn't find anything. did check ambient light sensor nothing helped.

can tell me there way identify low light state while using iphone front camera?

thanks

you need use avfoundation, , can monitor brightness value that's in video stream's metadata, explained in my answer stackoverflow question. if you're not viewing video feed, may want ramp down 6 fps, give lower floor low light (and more control).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -