Android Java + OpenCV
This code can be utilized for Android. Call Camera activity for result image(Bitmap) Then convert it to Mat and histogram is to be retrived from it. (Assume we need 3 channels R, G, B)
And finally most dominant RGB value will be picked.