I need to create an application that measures light intensity, as shown below:
http://itunes.apple.com/us/app/luxmeter-pro/id408369821?mt=8 http://itunes.apple.com/us/app/megaman-luxmeter/id455660266?mt=8
and I wonder which one is the best to solve. As I understand it, it is not possible to use the light sensor APIs that are private to Apple. What classes can I use to capture frames and get properties like pixel color or some kind of output that I can convert to Lux later?
Thanks!
What you really want is to take an image using the camera api and run an algorithm to determine the brightness. You can do this on the fly. See below:
Camera Tutorial: http://developer.apple.com/library/ios/#DOCUMENTATION/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html
Brightness Algorithm: http://b2cloud.com.au/tutorial/obtaining-luminosity-from-an-ios-camera
Source: https://habr.com/ru/post/912475/More articles:How to add a Vscroll control to form in Visualbasic.net? - .netPartially matching name fields in SQL Server - sql-server-2008Postgresql copies data to a tree table - functionHow to unit test smartfoxserver - junit4How to add a constraint on a complex type in an XML Schema (XSD)? - xmlWhat is textViewResourceId? - androidResizing scrollbars in winforms - c #How to define case classes with members with unrelated type parameters? - genericshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/912479/getting-apache-24-access-logs-to-show-client-ip-instead-of-127001-with-varnish-using-modremoteip&usg=ALkJrhi3A6Tobnml1hSFbx1fm5DLq3h7Mwpostgresql - update a tree table with rows from one table by changing id and parent_id - sqlAll Articles