mbarcode
want to say great job so far to lardman on mbarcode, works great in landscape and portrait mode,
so far it scans barcodes nicely and then i guess it trys to look it up but it just sits there, work in progres per lardman looks nice tho. |
Re: mbarcode
For future reference, punctuation is welcome.
|
Re: mbarcode
Ok, so I've done some more work on mbarcode recently. The code is in Garage project maemo-barcode if anyone's interested.
The Fremantle version in Extras-devel is a couple of iterations further on than the Diablo version (also in Extras-devel), but that's just because I've not got round to changing my sb target to check that it builds. Will do that this evening. So current feature set:
What I would really like is to use Amazon Web Services (AWS), but again I'm not an expert and the example source I've seen is all !C code. Any help gratefully appreciated. So sometimes the app will tell you it's looking up a barcode, but nothing will happen - either due to no weblink, or the parser failing. Things to improve/add:
|
Re: mbarcode
This is better than Symbian barcode reader. I found it useful also as a torch.
|
Re: mbarcode
I should add that I'm thinking of issuing a DBUS message whenever a barcode is decoded so that people can also use the information in their own apps. Would this be of interest?
|
Re: mbarcode
It is good idea. I can see several possibilities to use that information.
|
Re: mbarcode
Very much so. Actually, a clean way to handle the following workflow would be welcome:
1. Application starts mbarcode with a simlple UI, 2. user scans a barcode, 3. mbarcode reports back (optionally with decoded results from Amazon or similar lookup) and closes itself, 4. application uses barcode contents or decoded results. |
Re: mbarcode
To continue the theme, there are two useful options to allow other apps to use the barcode data (and avoid them having to implement their own camera control and decoder stuff):
DBUS messages which apps can listen for, after having opened mbarcode somehow. or Allow plugins in mbarcode, so that a given app can be displayed in the main mbarcode window. The first is certainly easy enough to do, and would probably be the preference for apps which do something other than handle the barcode data, but if we're talking about a shopping list app, or something of this type, where the scanning is a big part of the usage of the app, I don't know whether the continual switching would be annoying. I also worry about foreground/background issues, especially if the phone goes off part way through - then the user would have to work out what the outside app is trying to do and switch to mbarcode to capture an image. Perhaps these aren't big things though? Plugins have are a bit more complex to implement, but at least they sit in the same application so handling the data should be fast. Any thoughts? |
Re: mbarcode
Well, for starters, I know that if it could send a DBUS message, I could fully envision a mbarcode plugin for Shepherd... :)
|
Re: mbarcode
Ok, so I'll add a DBus message which is sent out when a barcode has been decoded, and I'll add one that can be sent to start mbarcode and let the user scan a barcode (and then it will broadcast the result as above).
The other thing to think about is things like web-lookups, etc. It would probably be best if everyone can use the same set of services. Therefore it might well be worthwhile allowing plugins which can handle barcode data and return results (possibly as a DBus message again?) E.g. some webscrapers, AWS type services. Not sure this needs plugins, just that I don't really want to have to code up webscrapers. I'd be more than happy to have these as a part of mbarcode, and allow external apps to ask for lookups over DBus, or perhaps something like this could be put in an external library so that any interested apps could use it directly (as really mbarcode doesn't need these if all the action other than camera & decoding goes on elsewhere)? Another thought, related to DBus, is that applications could register an intrerest (e.g. in GConf), so that they will be woken by a specific DBus call when some payload type is delivered. E.g. the geo: tag could be handled by one of the mapper apps, which could be woken by mbarcode, rather than it having to specifically open mbarcode? Your thoughts, as always, gratefully received. I should probably also add that this app is in maemo-extras, be careful if you enable the repo, things in there may not work, so don't upgrade willy-nilly if you enable it. YOU HAVE BEEN WARNED ;) |
All times are GMT. The time now is 14:05. |
vBulletin® Version 3.8.8