Get predominant color

I am using a custom list, in this list there is an image that is added by the user, I wanted to get the predominant color of the image to use as the text color that accompanies the image in the list.
for a example:


obviously the predominant color of this image is yellow, so in this case I wanted to set the text color of the label to yellow, but I don’t know how I can get the predominant color. is there any way to do this?

2 Likes

@Victor_MM you can’t do this you can only use ocr to read text from image

I created this app to get colors from pictures or screenshots.

i found this API: Color Thief
but i dont know how to use it…

can anybody help me?