using google images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

using google images

Post by tyarmsteadBUSuSfT » Thu Jun 26, 2014 12:55 am

I am thinking through an idea and not asking for code, but to see if it is feasible.
I would like to capture a picture from my app (Got that) and go to www.images.google.com then insert the complete filename from the device into the search box for goggle and then select "Search" to search for similar pictures on the internet. I want to do this with only one button from the picture or a double click/tab on the picture. In other words with minimal user interaction. Before I start I'd like to know if anyone thinks that is possible with our current version of LveCode. I may then download that picture back to the app.

Thank you
TY

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: using google images

Post by Simon » Sat Jun 28, 2014 5:57 am

Hi TY,
Sure!
https://www.google.com/search?hl=en&sit ... q=livecode
In that url livecode is the name of your file.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: using google images

Post by tyarmsteadBUSuSfT » Sun Jun 29, 2014 10:14 pm

Great, thank you Simon
Ty

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: using google images

Post by tyarmsteadBUSuSfT » Mon Jun 30, 2014 1:04 am

Simon,
Would I use:
/var/mobile/applications/...Phone ID../Documents/myimages/myimages1404082825.jpg as the file name? I've tied variation of this and google is not able to find an image. It is an image of a calculator. I've tried to get the imageData use that,but it still didn't work. I'm missing a step somewhere.
Thank you
Ty

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: using google images

Post by sefrojones » Mon Jun 30, 2014 1:16 am

Are you trying to create a reverse image search? Google images can only search by the text that is searched. It has no idea that your picture is a calculator. If I understand correctly, you want to create something like TinEye(https://www.tineye.com/) Perhaps? If this is the case I don't think google images is what you're looking for. If this is not the case, maybe your solution is to rename the file to calculator.jpg?

--Sefro

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: using google images

Post by Simon » Mon Jun 30, 2014 1:27 am

Wow Ty,
If figured you were naming your images, like Sefro said.
Sorry no way it will work with a filename like that.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: using google images

Post by tyarmsteadBUSuSfT » Mon Jun 30, 2014 1:39 am

Thanks you two for your rapid responses. I now have a much better understanding and will have the user "describe the photo" before the search.
Thank you again
Ty

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: using google images

Post by ClintMA » Sat Nov 17, 2018 8:59 pm

There is a possible, somewhat advanced, and not free solution:

Tintype offers an API service to access it’s image search engine:

https://services.tineye.com/TinEyeAPI

You can use api's in Livecode, but I have not done so. Others would have to help you with this, if it's something you wish to persue.

Please note, as I mentioned earlier, you have to pay to use this api.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”