M
M
Mark_Aizek2016-02-04 09:59:13
Android
Mark_Aizek, 2016-02-04 09:59:13

How to determine the main colors of a photo in Android?

We need an algorithm for determining the main colors in a photo or a library, the result is like here: habrahabr.ru/post/136343 Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Dorofeev, 2016-02-04
@Mark_Aizek

A special class responsible for this is in the Android Support Library v7.
It's called Pallets .
Here is the tutorial .

X
xmoonlight, 2016-02-04
@xmoonlight

On JS: lokeshdhakar.com/projects/color-thief

M
Mark_Aizek, 2016-02-04
@Mark_Aizek

Oh, I found an interesting thing - https://derickrethans.nl/finding-out-colours.html , maybe someone is closer to Android?

J
JohnZoidberg, 2016-02-04
@JohnZoidberg

Is there something similar for iOS? Or at least a description of the algorithm? Or at least its name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question