Page 1 of 1
using google images
Posted: Thu Jun 26, 2014 12:55 am
by tyarmsteadBUSuSfT
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
Re: using google images
Posted: Sat Jun 28, 2014 5:57 am
by Simon
Hi TY,
Sure!
https://www.google.com/search?hl=en&sit ... q=livecode
In that url livecode is the name of your file.
Simon
Re: using google images
Posted: Sun Jun 29, 2014 10:14 pm
by tyarmsteadBUSuSfT
Great, thank you Simon
Ty
Re: using google images
Posted: Mon Jun 30, 2014 1:04 am
by tyarmsteadBUSuSfT
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
Re: using google images
Posted: Mon Jun 30, 2014 1:16 am
by sefrojones
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
Re: using google images
Posted: Mon Jun 30, 2014 1:27 am
by Simon
Wow Ty,
If figured you were naming your images, like Sefro said.
Sorry no way it will work with a filename like that.
Simon
Re: using google images
Posted: Mon Jun 30, 2014 1:39 am
by tyarmsteadBUSuSfT
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
Re: using google images
Posted: Sat Nov 17, 2018 8:59 pm
by ClintMA
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.