使用图片在谷歌搜索

时间:2014-12-20 09:45:11

标签: java android google-custom-search google-image-search

我有一个Android应用程序,应该使用图像搜索谷歌..用户应上传照片并使用它进行搜索..

我有选择要搜索照片的代码..

Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,
    "Select Picture"), GALLERY_CODE);

我在谷歌搜索过,我发现只有那个..

ImageSearch

但是使用关键字搜索图片..我不想要那个......

此外,我尝试使用图像在Bing中搜索,但我不能。

任何想法?

1 个答案:

答案 0 :(得分:0)

您应该使用Google Custom Search JSON/Atom API

  

JSON / Atom自定义搜索API可让您开发网站和应用程序,以编程方式从Google自定义搜索中检索和显示搜索结果。使用此API,您可以使用RESTful请求以JSON或Atom格式获取Web搜索或图像搜索结果。

您可以在此处找到另一种方法:Google Search by Image API?使用TinEye API