google image search: search similar images - search

I want to write a mobile app which takes a picture and searches google images for similar pictures and then displays the results.
However, with google image search I can only search for text strings, and with the search API it seems there's no possibility to search for similar pictures; this feature seems to be available only through the web interface.
Any idea how I can solve this problem?
thanks,
Christoph

There is a way you can do this now, but its not officially supported, and there are probably some restrictions on the number of queries you can perform. Update
http://images.google.com/searchbyimage?hl=en&biw=1060&bih=766&gbv=2&site=search&image_url={{URL To your image}}&sa=X&ei=H6RaTtb5JcTeiALlmPi2CQ&ved=0CDsQ9Q8
There is also a google image search API, which is being officially deprecated, but it will work for now.
http://code.google.com/apis/imagesearch/

The Google Vision API.
https://cloud.google.com/vision/
This is very simple and easy and powerful.

I had done something like that recently for a mobile app, this is the code for it, it uses google search by image feature, and returns the "best guess" or the whole page
you could use that and modify it to do what you want, but once you get the best guess of the image you could search for any image with that title, etc
https://github.com/hbattat/search-by-image

I don't think it's possible. If you click the link to find similar images from the images result page you get a link with the original query included:
google.com/images?q=ORIGINAL_QUERY&imgtype=i_similar&sa=...
If you remove that GET param manually, the search does not work, it only shows the images search form.
I dont think it is possible to find similar images with google if you do not know what's on it.

I was looking for an answer to this some time ago, and found tineye. You have to pay for it, though. Currently (Jan 2012) USD300 for 5K searches, USD1.5K for 30K searches...

SerpAPI enables to search through Google Images and returns a clean JSON.
URL example:
https://serpapi.com/search.json?q=Apple&tbm=isch&ijn=0
Documentation:
https://serpapi.com/images-results
This service is integrated with most of the programming languages: python, php, java, golang, nodejs...
Google limit the number of search per day. but this service provides unlimited searches...

Related

Where can I find a hook to customize the search via Shopware App?

I am prototyping a Shopware App right now, where I want to extend the search with our search API. We already have a working plugin in the store for that.
I found those two references for hooks:
https://developer.shopware.com/docs/resources/references/app-reference/webhook-events-reference
https://developer.shopware.com/docs/resources/references/app-reference/script-reference/script-hooks-reference
Seems like there is no webhook for the search at all and just a script-hook for a finished search. In the plugin, we could just extend the ProductSearchRoute and be completely flexible.
Are search extension not planned right now?
Cheers,
Tobias
I assume you want to alter the criteria for fetching the products. As of today this is not yet possible with non-self-hosted apps. You could use the app scripts to enrich or replace the contents of an already loaded page as you already mentioned. Obviously that comes with some drawbacks regarding performance. The capabilities of apps are being enhanced continuously though so there's chance search manipulation might become possible rather soon.

Add search feature to simple website without mySQL database

I have a simple HTML site with 100+ pages or so. I want to add a search bar at the top so the user can search the site. I know about Google Custom Search, but it shows ads unless you pay at least $100. Obviously I'd like ad-less search on my site for free if at all possible!
I've also heard about Lucene/Solr, but they do not actually crawl the site. For that I would apparently need Nutch.
Anyway, the site I have runs on a Microsoft IIS6 server, but I have basically no knowledge as to how Solr, Nutch, etc. gets "installed" on the server.
Also: I'd like to point out that I do have a local copy of the site. Perhaps I can do one big initial nutch "crawl" locally that will create an .xml for Solr?? That would help me get "up and running", but probably wouldn't be a good long-term solution.
..so should I just use Google Custom Search? or is there a not-extremely-painful-to-implement alternative? The brain hurts folks.
You did not mention how many search requests you want to handle but if you use the json-rest-api of google's custom search you have 100 searchqueries a day for free and you can display them without any ads on your page.
An simple example request can be found here.
Here is an easy way that works pretty well, although you may be looking for something more than this.
http://sitecomber.com/getsitecomber/
You can create code to paste into your site in about 2 minutes. It doesn't get easier than that. Search is powered by Google, but results are isolated to your website.
EDIT: This no longer works.

Image search integration

I'm looking for a solution, where users of my site can use an image search engine (e.g. Google), instead of uploading an image, they can search and pick one of the results.
My problem is:
Google image search API is deprecated!
Google custom search requires me to add "sites to search" when creating a custom search API key. However, I do not want to search my own site, I want to search the internet!
Which Google API is ment to search images on the internet?
Would it be plausible to include normal image search in an iframe, and somehow capture an image selection (i.e. when clicked)?
Google made it really difficult:
http://groups.google.com/group/google-ajax-search-api/browse_thread/thread/9885ea5ab20b8f01?pli=1
http://support.google.com/customsearch/bin/answer.py?hl=en&answer=1210656
TL;DR: You have to use Google custom search, add a random site when creating the API key, afterwards you can tweak the settings to search the entire web instead.
Have you checked out LTU technology?
I found this url which JSON - seems to be the top results when searching google images:
https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=car

how to make my site look like in following image on search engines result

I was wondering if is it possible to make same thing by myself, or Search Engines does that by themselves?
I want to add some links like here:
Google does this on it's own and all you can do is to (then) remove some of the links through the Google Webmaster Tools.
They are commonly named Site Links and you can google for "How to get Site Links Google SERP" and so forth - there are thousands of tips for helping Google along.
A clear navigational structure and internal link structure help of course, and consistent anchor texts.
As far as I know, Google automagically pics those up - there is no direct way to set them.
Make sure you have a proper site map, and then wait I suppose.
Yes, google will generate that links for you.

How to add google search results on your site?

Is there any way to add google search results into your site such that the results appear under your domain (and the page doesn't get redirected to google.com)? I know about google cse but this is not a free solution. Is paying for CSE the only way? Thanks.
Use the Google AJAX Search API (my emphasis):
The Google AJAX Search API lets you
put Google Search in your web pages
with JavaScript. You can embed a
simple, dynamic search box and display
search results in your own web pages
or use the results in innovative,
programmatic ways.
You just need JavaScript - nothing server-side.
You could use Google Search API.
You could also query Google search engine through a Web Service. Here's the WSDL and here's the FAQ. But I think this will be discontinued in favor of the first suggestion I gave.
I've never used this but if you're into python check out Python Library for Google Search from Peteris Krumins’ blog.
What about this? http://code.google.com/apis/ajaxsearch/web.html
And there should be even API for PHP etc.

Resources