QUOTE(angch @ Feb 24 2020, 01:56 PM)
https://gist.github.com/angch/e0772b9b3e3be...99bbad6f13528e7CODE
% go run main.go
Copy paste this to browser:
data:text/html,<html%20contenteditable> <div style='background:#000000;'>Accent</div><div style='background:#30471f;'>Accent</div><div style='background:#608e3e;'>Accent</div><div style='background:#93c271;'>Accent</div><div style='background:#c9e1b8;'>Accent</div> </html>
Dang, works on Safari only. Fixing.
Hi,
Mind to explain the higher level concept?
I'm not a go programmer but from what i can see, you find the brightest colour and use it as accent colour?
For me, i maybe will try steps below:
1. Perform gaussian filter on the image for smoothing purpose
2. Thresholding and separate blobs in image
3. From eachblob, perform analysis (find highest intensity, area and etc)
4. From the analyzed valued in the blob (maybe blob with highest intensity, contrast and etc), determine the accent colour