Reputation: 232
I want to convert a bitmap with colored squares to an array of Strings being the names of the colors in the squares. I am facing some issues :
Example :
And I need to return something like this :
{"blue", "green", "white", "yellow", "orange", "blue", "green", "orange"}
Upvotes: 0
Views: 148
Reputation: 3332
I suggest you use Palette Helper Class, it helps extract colors from a bitmap, however the number is limited.
Here's a nice article on how to use it. Extracting Colors to a Palette with Android Lollipop
Upvotes: 1