maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   QR code reader for the n810 (https://talk.maemo.org/showthread.php?t=27508)

lardman 2009-10-08 09:39

Re: QR code reader for the n810
 
works on N900 and N8X0, with limitations (as I'm out of the country atm)

http://people.bath.ac.uk/enpsgp/nokia770/mbarcode/

no installable package yet, place mbarcode somewhere and install libdmtx0.

webscraping is disabled (doesn't work consistently, so best disabled to avoid segfaults), opening web links in dmtx or qrcodes is broken (I broke it just before I left), but it still displays the url on the screen. database stuff is probably also broken/only partly working so far.

but the good news: decodes 1d, qr code and datamatrix barcodes and displays the data.

code is under the maemo-barcode garage project under branches/simon_wip/maemo-barcode (iirc, can't check here).

will get back to fixing things up once I'm back from the summit, patches and ideas welcome of course.

lardman 2009-10-08 09:45

Re: QR code reader for the n810
 
oh yes, not managed to work out focus and led control on the n900 yet, but was told we should hear about this at the summit, so expect support shortly after.

MrWeasel 2009-10-08 10:14

Re: QR code reader for the n810
 
Quote:

Originally Posted by lardman (Post 341661)
opening web links in dmtx or qrcodes is broken (I broke it just before I left),

can be fixed with

Code:

Index: web.c
===================================================================
--- web.c        (revision 98)
+++ web.c        (working copy)
@@ -1750,7 +1750,7 @@
    switch (response) {
    case GTK_RESPONSE_YES:
        osso_context = osso_initialize ("com.lardman.mbarcode", "0.0.1", FALSE, NULL);
-        osso_rpc_async_run(osso_context, "com.nokia.osso_browser", "/com/nokia/osso_browser", "com.nokia.osso_browser", "open_new_window", osso_retval,  DBUS_TYPE_STRING, open, DBUS_TYPE_INVALID);
+        osso_rpc_async_run(osso_context, "com.nokia.osso_browser", "/com/nokia/osso_browser", "com.nokia.osso_browser", "open_new_window", osso_retval,  NULL, DBUS_TYPE_STRING, open, DBUS_TYPE_INVALID);
        //osso_rpc_run_with_defaults(osso_context, "osso_browser", "open_new_window", NULL,  DBUS_TYPE_STRING, open, DBUS_TYPE_INVALID);
        osso_deinitialize(osso_context);
        break;


Jaffa 2009-10-12 14:29

Re: QR code reader for the n810
 
lardman was demonstrating QR code reading at the summit.

lardman 2009-10-12 20:51

Re: QR code reader for the n810
 
And he promises to get the auto-focus and LED lighting working on the N900 asap (as well as sorting out some webscraping on all the devices, using at least Amazon, and fixing the url opening using MrWeasel's pointer).

Webscraping patches (or any other for that matter) welcome of course.

I'm also planning to add support for QR codes containing vCards, anything else specific anyone knows of that should be added in? iCal perhaps?

allnameswereout 2009-10-13 09:29

Re: QR code reader for the n810
 
Quote:

Originally Posted by lardman (Post 344824)
And he promises to get the auto-focus and LED lighting working on the N900 asap (as well as sorting out some webscraping on all the devices, using at least Amazon, and fixing the url opening using MrWeasel's pointer).

Webscraping patches (or any other for that matter) welcome of course.

I'm also planning to add support for QR codes containing vCards, anything else specific anyone knows of that should be added in? iCal perhaps?

http:// mailto: and iCalendar.

lardman 2009-10-13 11:30

Re: QR code reader for the n810
 
Http should again be working soon, but if anyone has a pointer to code for opening an email and adding calendar events please do post and I'll stick that into the app for some testing.

adem3311 2009-10-18 14:11

Re: QR code reader for the n810
 
I can't get the libdmtx0 to install on mine - it shows an error even when both files are in the same directory.

Any ideas?

MrWeasel 2009-10-18 14:18

Re: QR code reader for the n810
 
export LD_LIBRARY_PATH=/path/where/lib/is

lardman 2009-10-18 14:30

Re: QR code reader for the n810
 
Quote:

I can't get the libdmtx0 to install on mine - it shows an error even when both files are in the same directory.

Any ideas?
What's the error?

You've presumably done "sudo gainroot" to become root, then "dpkg -i libdmtx0a_0.7.0-1_armel.deb".

I've uploaded libdmtx to extras-devel too, though you shouldn't enable that really unless you know what you're doing.

Also note that you'll probably need to make the mbarcode binary executable like so "chmod a+x mbarcode", then run it like so "./mbarcode"


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8