如何上传图片,然后在 iOS 中根据该图片执行自定义谷歌图片搜索?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14495912/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:59:46  来源:igfitidea点击:

How to upload image and then perform custom google image search based on that image in iOS?

iphoneiosimage-uploadinggoogle-image-search

提问by ABHI

Smart Peoples,

聪明的人们,

I have worked on performing custom google image search like entering text and it will display a list of images ,i got that file in JSON. I have already referred https://developers.google.com/custom-search/v1/overview

我一直致力于执行自定义谷歌图像搜索,例如输入文本,它将显示图像列表,我以 JSON 格式获取该文件。我已经提到了https://developers.google.com/custom-search/v1/overview

NOW I want to work on uploading image from my app and there after i want to make google image search using that uploaded file so it will display me results that would be similar images related to that uploaded image based on pixels,view,size,etc..

现在我想从我的应用程序上传图像,然后我想使用上传的文件进行谷歌图像搜索,这样它就会显示与基于像素、视图、大小等上传的图像相关的类似图像的结果..

for example you can check out google image search and on search bar you will see a small camera at the corner side just click on it and upload an image it will display you results similar to that uploaded image .

例如,您可以查看谷歌图片搜索,在搜索栏上,您会在角落看到一个小相机,只需单击它并上传图片,它就会显示与上传图片类似的结果。

I want to make use of the same concept in my IOS app. please help me out as early as possible from scratch related to this your reply would be highly appreciable and admired ..

我想在我的 IOS 应用程序中使用相同的概念。请尽早从头开始帮助我解决与此相关的问题,您的回复将非常值得赞赏和钦佩..

THANKS , in Advance

提前致谢

回答by madhead

You need a reverse image search. There are two main players in this business: Googleand Tineye. Tineye was pretty cool till google arrived. Now, I prefer Google. Also, Tineye search is payed.

您需要反向图像搜索。这项业务有两个主要参与者:GoogleTineye。在谷歌出现之前 Tineye 非常酷。现在,我更喜欢谷歌。此外,Tineye 搜索是付费的。

I have an example code for Google here. It must be not very difficult to rewrite it with Objective-C to use in iOS devices.

在这里有一个 Google 的示例代码。用 Objective-C 重写它以在 iOS 设备中使用应该不是很困难。