4 ms·
A couple of years ago, I built an app that would generate websites from photographs. The idea was if you liked a particular scenery/color combination from the r
by neya 9y ago
A couple of years ago, I built an app that would generate websites from photographs. The idea was if you liked a particular scenery/color combination from the real world, then you'd have a website built from it. All you had to do was a take a photo and it'd generate a color palette from which the website would be built on the fly.
However, I faced with the same challenge as the author has pointed out - what our eyes see and perceive as "bright" are very totally different from what computers perceive. So, I designed an algorithm from scratch using ML and the HSV color model. The tests I ran showed me the real difference between what I saw and what the computers saw.
Here's some samples:
1. https://i.imgur.com/jhWR3pq.jpg https://i.imgur.com/jhWR3pq.jpg
2. https://i.imgur.com/M6Oo6dp.jpg https://i.imgur.com/M6Oo6dp.jpg
I think I'll probably open source it soon.
- Philomath 9y agoVery interesting! I think you have a powerful base for building posters on the fly. Take image A, crop the background, take the colors from your algorithm and use the ones that the regular algorithm wouldn't consider (the ones that stand out more but appear in less quantity) for generating headers and subheaders of the poster. You have a color balanced algorithm made poster with just an image and a background as an input from the user.
- pasta 9y agoThere is also a very nice JS lib that does this: https://jariz.github.io/vibrant.js/ https://jariz.github.io/vibrant.js/
- phito 9y agoCould you please give me a link to your github account?(assuming that's where you'll put the source) I've been wanting to do this for a while but figured out that I lack the knowledge and time to do it properly
- GCU-Empiricist 9y agoReplying to keep track and or follow your github when/if you post this.