1

I have tried searching this multiple times and came across no simple resources.

Lets say I have a single URL and I want to search for all images that look the same as said image (let's say <98% similarity, for arguments sake).

I simply want to return the number of images that look the same as my original, that is all.

I have searched Google multiple times ,but found no convenient way for me to do this using. I would preferably like to use Python, but if this is not possible it would be perfect if I could just use the method call in a Python program.

Is it possible? How?

Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
  • Similar to: http://stackoverflow.com/questions/10141800/google-search-by-image-api Suggestion was: https://developers.google.com/custom-search/json-api/v1/overview – Jacob Schaer Oct 29 '13 at 00:45
  • Hmmm... read through it, and it doesn't look like they have an API exposed for reverse image search. As @SteinarLima suggested, tineye.com is a good choice, or you can possibly scrape the results from http://images.google.com (probably just a simple form to POST to and then scrape the results). Would web services solve your problem, or are you looking for more algorithm related answers? – Jacob Schaer Oct 29 '13 at 00:57

2 Answers2

0

This is a problem more suitable for a web-service to perform. Tineye.com is a reverse image search, and I suspect that you can use curl to send a http request to this web service, and use e.g. BeautifulSoup to extract the number of matches.

Steinar Lima
  • 7,644
  • 2
  • 39
  • 40
0

You can search for all images you have through google image search engine simply, because Google has been providing us with their own APIs like

https://ajax.googleapis.com/ajax/services/search/images

And I found related article on stackoverflow, just take a look at python search with image google images

Community
  • 1
  • 1
Rex Kim
  • 46
  • 1
  • 6
  • I'm not sure the API's are exposed for that particular Google product - only normal image search. This was a decent article on coming close by scraping the result pages: http://skyzerblogger.blogspot.com/2013/01/google-reverse-image-search-scraping.html – Jacob Schaer Oct 29 '13 at 18:32