maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Request] Google Goggles For N900 (https://talk.maemo.org/showthread.php?t=83143)

DJBENTZY 2012-03-20 11:09

[Request] Google Goggles For N900
 
Hi,

Is it possible to use this python google goggles code and create a share plugin to n900?

https://github.com/deetch/goggles-experiment

http://notanothercodeblog.blogspot.c...ggles-api.html

Thanks

Bentzy.

cddiede 2012-03-20 12:45

Re: [Request] Google Goggles For N900
 
How is Google Goggles that different from Nokia's City Lens (Liveview):

http://betalabs.nokia.com/apps/nokia-city-lens

icebox 2012-03-20 13:20

Re: [Request] Google Goggles For N900
 
Nokia's City Lens is not available for the N900 as far as I can see...

AapoRantalainen 2012-03-20 15:31

Re: [Request] Google Goggles For N900
 
Goggles comes with source code (but not explicit license).

Seems CityLens doesn't have public source code. (Correct if I'm wrong).

--
Goggles.py is not (syntactically) working with python-2.5.2 (this is what we have on Maemo).

It is not working on Ubuntu either, maybe there are something changed on server/API. One comment point to the test made by Java, and that works under Ubuntu: http://prodroid.com.ua/?p=385

So that Java could be rewritten (back) to the Python and keep in mind python-2.5 and then we have it on N900.

That java-file is 193 lines and imports could be the same than old python goggles.py have.

It is only commandline tool for testing API.

DJBENTZY 2012-03-20 15:52

Re: [Request] Google Goggles For N900
 
I saw on the comments of this link http://notanothercodeblog.blogspot.c...ggles-api.html
that this code is no longer active since google made some changes BUT there is another comment says that there is a small issue to fix and it can be back to functional again.

I see what people do these days with less then the code provided in these links (thanks again to all the developers who keep on developing our devices)
I hope that someone can make this code snippets into one working share plugin.

AapoRantalainen 2012-03-22 21:50

Re: [Request] Google Goggles For N900
 
And here we go, I do not even know what is 'share plugin', but goggles.py -tester is now working on N900.

Who will build GUI with camera functionality?

------------------------
Fetch:
Code:

git clone https://aapo@github.com/aapo/goggles-experiment.git
Install dependency:
Code:

root
apt-get install python-httplib2

Download image from blog post
Code:

wget http://4.bp.blogspot.com/__Jkfqgge9Y4/TUqAe2E7aVI/AAAAAAAAAA0/7Jrm6_sQ2-s/s1600/photo.JPG

Works on N900:
Code:

./goggles.py photo.JPG
And it will answer:
Code:

1
'Hello, goggles! '
2
'Text'
1
'Svn Tag'
2
'Similar Image'
6
'60d8533f436f980d'
4
'\n+TR=T=Dh1FnQ6ME8U:X=Pa52W:S=7RIJ7CWcJm-fze4x\n+TR=T=UBrggiiDWu8:X=Pa52W:S=TeOuEomAji2B7nVN\n+TR=T=KZPBUJ_WgfA:X=Pa52W:S=LlcDYKUWY4OqdreQ\n+TR=T=_m1SyKC3WiU:X=Pa52W:S=NeFbGzffsl-D7IfT\n+TR=T=jfs_mlc4wSI:X=Pa52W:S=QgWZ2Fyqppqns3j5\x10\xe0\xa7\x12'                                 
### start of non-debug output ###
1
Reply
        1
        ReplyItem
                1
                'Hello, goggles! '
                2
                'Text'
        1
        ReplyItem
                1
                'Svn Tag'
                2
                'Similar Image'
        15705729
        unknown
                2
                some 64bit value
                6978419153790015501L
                6
                '60d8533f436f980d'
4
'\n+TR=T=Dh1FnQ6ME8U:X=Pa52W:S=7RIJ7CWcJm-fze4x\n+TR=T=UBrggiiDWu8:X=Pa52W:S=TeOuEomAji2B7nVN\n+TR=T=KZPBUJ_WgfA:X=Pa52W:S=LlcDYKUWY4OqdreQ\n+TR=T=_m1SyKC3WiU:X=Pa52W:S=NeFbGzffsl-D7IfT\n+TR=T=jfs_mlc4wSI:X=Pa52W:S=QgWZ2Fyqppqns3j5\x10\xe0\xa7\x12'


DJBENTZY 2012-03-26 08:03

Re: [Request] Google Goggles For N900
 
WOW!
Nicely Done!

Who can help with compiling this code to sharing plugin?


All times are GMT. The time now is 17:46.

vBulletin® Version 3.8.8