5 ms·
In case anyone is wondering how this works, it does a google image search and then extracts the primary color of each result. That’s why you see unexpected colo
by shawn 8y ago
In case anyone is wondering how this works, it does a google image search and then extracts the primary color of each result. That’s why you see unexpected colors like grey for “heart”: image search returns black and white hearts.
- starshadowx2 8y agoMy first search for "apple" gives you a bunch of greys and a red is only the 8th result. There's more grey, beige, a blue, black, yellow, orange, but only one green and 5 reds total. Searching "heart" at least gives you a red first and majority reds.
- bryanrasmussen 8y agomy search for apple in google returns only results somehow related to apple the company, so it would seem this is google, but for colors.
- shawn 8y agoRight. If you do a google image search for apple, it'll show mostly grays because it's returning the Apple logo.
- RobertRoberts 8y agoTry "apples instead", all red and a single lime green. It's amusing having a background in software development and this is the first thought I had. (like many here I am sure would) I don't know exactly "why" this works, but knowing that it likely would before trying. (like hitting refresh when your web app barfs) Someone else suggested cause of the apple logo... and it seems they are likely right. :) https://www.google.com/search?q=apple&tbm=isch https://www.google.com/search?q=apple&tbm=isch Shows the "holes" in this method.
- tyingq 8y agoYep. Works pretty well for terms that return highly relevant images. Try "baby poop", for example.
- egfx 8y agothat's actually a pretty terrible way of handling it. There are libraries a' plenty that achieve this without scraping google.