Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Search by Image API?

for my job, I'm looking into an idea in which people would use Google Search by Image and use any celebrity photo they find. Google would return the results and then on our end, a there'd be a database of professionals showing how to get that specific look.

I'm assuming this is extremely unlikely to do, based on that users could use ANY photo.

So, is there a way that I could have about 100 or so celebrity photos that Google Image results could compare to and then choose the one that is closest.

Basically:

  1. Drag drop photo of Britney Spears
  2. Google searches with that image
  3. Google's results compare the top images with our 100, and selects the closest match.
  4. User gets to see video of how to get Britney Spears look.

I'm not a programmer, but looking for some API or Search by Image extension that could make this remotely possible for the programmers here at my job. Does something like that (a search by image api) exist? The best I could find was just the support page, which is hardly of any help: http://support.google.com/images/bin/answer.py?hl=en&p=searchbyimagepage&answer=1325808

like image 679
ahainen Avatar asked Apr 13 '12 13:04

ahainen


People also ask

Does Google have an API for image search?

Specifically, their Google Image Search API enables you to scrape and access image search results on Google in real-time. You can use similar parameters as for a standard Google search when searching for an image.

Is there a free Google search API?

Real-Time & Accurate. Google Search Results API Start using the API — It's free! Our powerful cloud infrastructure is built to withstand high volume API requests without the need of a queue. Tailor your automated search queries based on a series of options, including location, language, device, and more.

How do I enable Google Image Search?

On the Custom Search home page, click the search engine you want. Click Setup, and then click the Basics tab. In the Image search section, switch image search to ON.

How do I use Google Image Search in Python?

from google_images_search import GoogleImagesSearch gis = GoogleImagesSearch('your_dev_api_key', 'your_project_cx') _search_params = { 'q': '...', 'num': 123, } # get first 123 images: gis.search(search_params=_search_params) # take next 123 images from Google images search: gis. next_page() for image in gis.


2 Answers

You can easily search by an existing image by inserting this into your address bar:

https://www.google.com/searchbyimage?site=search&sa=X&image_url=YOUR_IMAGE_URL

Example:

https://www.google.com/searchbyimage?site=search&sa=X&image_url=http://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.png

like image 198
gradosevic Avatar answered Sep 19 '22 01:09

gradosevic


Sorry to say, but the Google image API is deprecated:

Important: The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited.

Quite sure there are some alternatives (http://www.tineye.com/ and http://mrisa.mage.me.uk)

Update (2013): There is now Google Custom Search which allows image searches.

like image 40
Gert Van de Ven Avatar answered Sep 17 '22 01:09

Gert Van de Ven