Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Open discussion - image processing, Computer vision, Deep CNN and etc

views
     
Palindrome
post Feb 23 2020, 02:06 AM

New Member
*
Validating
30 posts

Joined: Feb 2020
I don't have experience in Artificial Intelligence and tools related to computer vision.

In the old days, I worked with 256-color down to 16-color depth processing using Pascal.

I am not sure if this is related to your topic of discussion, but how would one pick the color accent from a image?

Presumably a greenish tent in a dark night, the black color is dominant, but why is green color the right theme or accent color?

I hope not to derail your thread. sweat.gif
Palindrome
post Feb 24 2020, 10:55 AM

New Member
*
Validating
30 posts

Joined: Feb 2020
QUOTE(weisinx7 @ Feb 24 2020, 09:35 AM)
Hi,

Actually i'm not so understand on your question, but please correct me if i'm wrong.

So do you mean in dark night, why the green colour is the correct accent colour?

And what do you mean by pick the color accent from an image? Is it picking the correct colour accent from the images?

Do you mind to elaborate further?
*
I should have elaborated lengthly. It is a personalization feature in Windows 10.

QUOTE
Use these steps to change the accent color of the desktop automatically on Windows 10:
Open Settings on Windows 10.
Click on Personalization.
Click on Colors.
Under the “Choose your accent color” section, check the Automatically pick accent color from my background option.


Do you notice the last line, "Automatically pick accent color from wallpaper".

There is one wallpaper with black starry sky, and a green tent on the ground. But Windows 10 is able to use green color instead of majority black color. How did it do that?


Palindrome
post Feb 24 2020, 10:58 AM

New Member
*
Validating
30 posts

Joined: Feb 2020
https://pictr.com/images/2020/02/24/5FrPh2.md.jpg

I mean this wallpaper.
Palindrome
post Feb 24 2020, 09:36 PM

New Member
*
Validating
30 posts

Joined: Feb 2020
QUOTE(weisinx7 @ Feb 24 2020, 12:06 PM)

i see, actually that would depend on their algorithm. If green colour is the accent colour, probably they choose based on the highest contrast compared to the background, in this case, black is the background, while there are a few contrasted colour: 

https://pictr.com/images/2020/02/24/5FrO4v.md.png

I might be wrong, but this is just my thought
*



Thank you for your kind explanation. Now I know have to ignore the background color.

QUOTE(angch @ Feb 24 2020, 01:56 PM)

Convert all pixels to HSL (Hue, Saturation, Lightness). Find the interesting hues. Don't care lightness, but use lightness to find which *hue* sticks out from the image. Once you found the top (hue, saturation), print out 10 versions of it in different lightness, in RGB space.

Easy peasy. Next!
*



Now see if your code pick the following accent color as well: bruce.gif
Attached Image

https://pictr.com/images/2020/02/24/5Fzyff.md.jpg
https://pictr.com/images/2020/02/24/5FzORU.md.jpg

Keep up the good work! (BTW, I am not familiar with H,S,L although I am okay with RGB)

 

Change to:
| Lo-Fi Version
0.0174sec    1.10    7 queries    GZIP Disabled
Time is now: 12th December 2025 - 05:56 AM