views:

29

answers:

1

On our web site, users enter free form text like "Ribeye steak at Safeway for $8.99. Great deal in Palo Alto."

Does anyone know of APIs that can take free form text and return an image that best represents the text?

Right now, we're feeding the whole text to Google Image Search, but sometimes the extraneous words (e.g., at, for, $8.99) skew the query and induce weird results.

+1  A: 

Google spends tens of millions of dollars a year trying to improve their answer to precisely this question; it's what Image Search is all about. If you are dealing with a relatively narrow sub-domain, your best bet is to build up your own image collection to match based on known keywords.

If you still want to use Google, then you might try a hybrid approach of submitting only known keywords to them. I'd be worried about copyright and term-of-use issues, though.

Marcelo Cantos
+1 plus, notice the enormous copyright implications. You can't just search for an image, and use it at will on your own web site.
Pekka