It’s been a … in theory not too hard project to do, but it turned out used up a few days.
As previous described, I could load the image, now I am working on the analysis part. Day 76 taught to use numpy to analyze image, but I couldn’t make it work, so eventually I used to stupid for loop method, not perfect (and it’s slow as hell), but it works.
I googled a few ideas, like module colorthief, or colormap (from here), but none of those work to my satisfaction, so I end up with what I have.
A few things to note: the same image after routed twice, does not display correctly. And the analysis method in first route doesn’t work. This is odd, but I might have to check more.