3 ms·
Nice work. Can we know what algo or mapping logic you using to do this?
by techaddict009 11y ago
Nice work. Can we know what algo or mapping logic you using to do this?
- Kamogo 11y agoThanks! Essentially it splits the image into emoji-sized parts and finds the dominant color of that part using color-thief.js. It then converts the RGB value into the LAB color space and finds the closest emoji match using the CIE76 color difference algorithm. The emojis are also handpicked to ensure no small ones like the plane and car get in.