How to get luminosity from the camera Android ?
Is there a possibility to retrieve luminosity from camera at the current time?
Is there a possibility to retrieve luminosity from camera at the current time?
I don't have any android experience, but you can easily calculate luminosity like so...
1) Splitting image into R, G, B values, something like b, g, r = cv2.split(img)
2) Average the b, g, r
values over the entire image --> b_avg = average(b)
3) compute luminosity w/ the following equation: double luminosity = r_avg*0.299 + g_avg*0.587 + b_avg*0.114
from this tutorial:
"The reason these values are weighted is because pure red, green and blue are actually darker/lighter than each other, with green being the darkest and blue being the lightest."
I do not agree that the luminosity is the same as luminance; see this
@thdrksdfthmn interesting. thanks...I've removed that portion of the answer
luminance = luminosity / m.squared. So the asker just needs to multiply the luminance value by the area being photographed? or the area of the lens? please explain @Lorena GdL instead of just telling me that I'm wrong
?? where is m.squared? what is it? was there a comment edited or deleted?
@thdrksdfthmn there wasn't any deleted comment. I don't know what that came from either
Asked: 2015-07-23 08:59:55 -0600
Seen: 899 times
Last updated: Jul 23 '15
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?
Unresolved inclusion in OpenCV+Android tutorial
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Which values for window size and number of pyramids are reasonable for calcOpticalFlowPyrLK?
Errors running builder 'CDT Builder' when trying to build OpenCV for android samples
ndk-build deletes native OpenCV library
Installing Sample App / OpenCV Manager