53

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

ahainen
  • 727
  • 1
  • 5
  • 12
  • i wrote code using python to download full resolution images from google search follow this http://stackoverflow.com/a/28487500/2875380 but you have to enter a query and the script will download 100 images for that query – rishabhr0y Aug 02 '16 at 10:11
  • @rishabhr0y Your code does not seem to meet the requirement of being able to upload a picture to search with... – Michael May 10 '17 at 16:44

5 Answers5

51

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

gradosevic
  • 3,935
  • 2
  • 26
  • 45
29

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.

Nathan Tuggy
  • 2,239
  • 27
  • 28
  • 36
Gert Van de Ven
  • 957
  • 6
  • 6
  • Ah, bummer. Didn't see that, thanks for the link. I'll take a look at Tineye – ahainen Apr 13 '12 at 16:32
  • 26
    Maybe I'm skimming over it too much, but as far as I understand it the Google Image Search API is for finding images based on text. Does (or did) it also do reverse image searching? – redbmk Jul 07 '12 at 00:14
  • 9
    Updated one won't works for search with uploaded image. Only works for finding images based on text. – Mahendra Jella Jul 29 '14 at 06:57
  • 7
    But, isn't Custom-Search limited to only defined Sites ? So... not entire internet-catalog but only few defined sites ? For me it's no go... – typohon111 Apr 13 '15 at 09:31
  • I am also looking to know if you can search images Google wide with the new API, is it possible ? – xavier Feb 25 '16 at 09:12
  • @xavier i wrote code using python to download full resolution images from google follow this http://stackoverflow.com/a/28487500/2875380 – rishabhr0y Aug 02 '16 at 10:07
  • Is it possible to get programatic results of result images by searching for image through its url? – mesqueeb Jun 04 '18 at 07:50
3

These answers are quite obsolete, but the question comes up in searches. So, the Google Vision API has the "web detection" feature that does a reverse image search. First 1000 requests per month are free, $3.50/1000 afterwards.

Ecuador
  • 766
  • 4
  • 22
2

You can do it via www.images.google.com but only from a browser (lets you upload your own image and compares it to similar). I'm working on doing it from code (not from browser).

Taryn
  • 224,125
  • 52
  • 341
  • 389
dave
  • 21
  • 1
  • 6
    then you could do it programmatically with the selenium WebDriver – Max Hodges Aug 09 '12 at 16:25
  • 6
    I'd be interested to see if Google has done anything to prevent that... Did you complete your code? Did it work? – drevicko Jan 28 '15 at 04:06
  • I built something in Selenium to test this, they blocked me after ~1000 requests. Would have loved to pay them to make requests officially through an API, there's clearly demand for it. – user666 Feb 18 '17 at 18:24
2

I think Google Web Detection could be a solution for you. Google moved it permanently from Image search

shark
  • 738
  • 1
  • 6
  • 18