Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Image search integration in Iphone app

I am working on google image search. I found so many url's for this. But problem is in all url's, they are passing the value as string to parameter.

How to use Google Custom Search for image search in objective c

this is one of the questions. In developer sites also they provided string parameter only like https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=apple

Here "apple" is value for parameter 'q and getting results for apple.

But i want to send image as a value to the parameter and getting results of that particular image.

Plz help me. I googled a lot. i found above like url's only. I didn't find my requirement.

Thanks in advance. Mahesh

like image 321
Mahesh_P Avatar asked Mar 12 '14 07:03

Mahesh_P


People also ask

Can I Google search an image on my iPhone?

On your iPhone or iPad, go to Google Images. Search for an image. Tap the image. At the top right, tap Search inside image .

How do I search for a specific image on my iPhone?

To search for photos on your iPhone, open the Photos app and use the Search icon at the bottom right of the screen. You can search by date, place, and content of the photo thanks to the phone's artificial intelligence. You can also use the Photo app's browse tool to find photos by people, place, category, and more.


1 Answers

There's another question that seems fairly similar, here.

If I understood one of the answers here. Google has deprecated their imageSearch api. The answer also provides a link to a new api, Google Custom Search, but that seems to only have the option to send text and receive images as search results. There doesn't appear to be a reverse image search available. I did however come across a third-party api by Tineye that seems to have a mobile api and things ready to go. Check it out HERE!

Note: I have not tried, nor do I have any affiliations with Tineye, I just came across it and thought I'd offer a suggestion.

Update

After some serious searching, I have solution no. 1 based on the answer: here.

If you upload your image to a server or backend of some sort, and generate a URL, you can submit it this way:

NSString * yourImageURL = //...//;
NSString * searchURL = @"https://www.google.com/searchbyimage?&image_url="

NSString * completeURL = [NSString stringWithFormat:@"%@%@", searchURL, yourImageURL];

Good luck!

like image 123
Logan Avatar answered Sep 22 '22 06:09

Logan