【问题标题】:Searching in google using image使用图片在谷歌中搜索
【发布时间】:2014-12-20 09:45:10
【问题描述】:

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

我有那个代码可以选择要搜索的照片..

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

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

ImageSearch

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

我也尝试使用图片在 Bing 中进行搜索,但我不能。

有什么想法吗?

【问题讨论】:

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


    【解决方案1】:

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

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

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

    【讨论】:

    • 感谢您的回答.. 我尝试搜索适用于 android 的 Google 自定义搜索示例,但找不到..
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-18
    • 1970-01-01
    • 1970-01-01
    • 2012-08-14
    相关资源
    最近更新 更多