I have an android project that recognizes image colors and displays text, depending on the color.
The app consists of 2 parts, a live view and a image import. The image import recognizes all colors but the live view only recognizes 3 colors: white, grey and black. I need the live view to detect all colors and use flash in dark areas on screen touch in live view, just like the camera does. I need this to work on the earliest android api and the latest. I already have it working on api 27, but the earliest I have is 21 and I want it to be earlier if possible.